diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2017-09-14 16:48:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-20 11:35:09 (GMT) |
commit | 55ed21e72e5f1b44e1769e9ad1bfd0a6b46555ce (patch) | |
tree | d3842b8e6e45c43a035f9e59190790866ed95e3f /Tests/RunCMake/add_library/RunCMakeTest.cmake | |
parent | 90b931e115fa6da965135a3a2160e2efbeac2379 (diff) | |
download | CMake-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/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/add_library/RunCMakeTest.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_library/RunCMakeTest.cmake b/Tests/RunCMake/add_library/RunCMakeTest.cmake new file mode 100644 index 0000000..0ba6216 --- /dev/null +++ b/Tests/RunCMake/add_library/RunCMakeTest.cmake @@ -0,0 +1,24 @@ +include(RunCMake) + +run_cmake(INTERFACEwithNoSources) +run_cmake(OBJECTwithNoSources) +run_cmake(STATICwithNoSources) +run_cmake(SHAREDwithNoSources) +run_cmake(MODULEwithNoSources) +run_cmake(UNKNOWNwithNoSources) + +run_cmake(INTERFACEwithOnlyObjectSources) +run_cmake(OBJECTwithOnlyObjectSources) +run_cmake(STATICwithOnlyObjectSources) +run_cmake(SHAREDwithOnlyObjectSources) +run_cmake(MODULEwithOnlyObjectSources) +run_cmake(UNKNOWNwithOnlyObjectSources) + +if(NOT RunCMake_GENERATOR STREQUAL "Xcode" OR NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" MATCHES "[;$]") + run_cmake(INTERFACEwithNoSourcesButLinkObjects) + run_cmake(OBJECTwithNoSourcesButLinkObjects) + run_cmake(STATICwithNoSourcesButLinkObjects) + run_cmake(SHAREDwithNoSourcesButLinkObjects) + run_cmake(MODULEwithNoSourcesButLinkObjects) + run_cmake(UNKNOWNwithNoSourcesButLinkObjects) +endif() |