summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2017-09-14 16:48:13 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-20 11:35:09 (GMT)
commit55ed21e72e5f1b44e1769e9ad1bfd0a6b46555ce (patch)
treed3842b8e6e45c43a035f9e59190790866ed95e3f /Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake
parent90b931e115fa6da965135a3a2160e2efbeac2379 (diff)
downloadCMake-55ed21e72e5f1b44e1769e9ad1bfd0a6b46555ce.zip
CMake-55ed21e72e5f1b44e1769e9ad1bfd0a6b46555ce.tar.gz
CMake-55ed21e72e5f1b44e1769e9ad1bfd0a6b46555ce.tar.bz2
Tests: Add tests for missing sources in add_executable and add_library.
Diffstat (limited to 'Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake')
-rw-r--r--Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake b/Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake
new file mode 100644
index 0000000..604e339
--- /dev/null
+++ b/Tests/RunCMake/add_library/UNKNOWNwithOnlyObjectSources.cmake
@@ -0,0 +1,5 @@
+enable_language(CXX)
+add_library(ObjectLibDependency OBJECT test.cpp)
+
+add_library(TestUnknownLibWithoutSources UNKNOWN IMPORTED)
+target_sources(TestUnknownLibWithoutSources PUBLIC $<TARGET_OBJECTS:ObjectLibDependency>)