summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_library/MODULEwithNoSourcesButLinkObjects.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/MODULEwithNoSourcesButLinkObjects.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/MODULEwithNoSourcesButLinkObjects.cmake')
-rw-r--r--Tests/RunCMake/add_library/MODULEwithNoSourcesButLinkObjects.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_library/MODULEwithNoSourcesButLinkObjects.cmake b/Tests/RunCMake/add_library/MODULEwithNoSourcesButLinkObjects.cmake
new file mode 100644
index 0000000..f9d00de
--- /dev/null
+++ b/Tests/RunCMake/add_library/MODULEwithNoSourcesButLinkObjects.cmake
@@ -0,0 +1,5 @@
+enable_language(CXX)
+add_library(ObjectLibDependency OBJECT test.cpp)
+
+add_library(TestModuleLibWithoutSources MODULE)
+target_link_libraries(TestModuleLibWithoutSources PUBLIC $<TARGET_OBJECTS:ObjectLibDependency>)