diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-11 20:08:27 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-07-17 13:07:00 (GMT) |
commit | ec5c838fcb04f672e3ec03547fb571d40e789fdd (patch) | |
tree | 518af7d70a386b84f6d707f422ab1d6cbdf39961 /Tests/RunCMake/install/TARGETS-OUTPUT_NAME.cmake | |
parent | f6c7358c2aa8d53522c6459451ab079e0d4e3b8b (diff) | |
download | CMake-ec5c838fcb04f672e3ec03547fb571d40e789fdd.zip CMake-ec5c838fcb04f672e3ec03547fb571d40e789fdd.tar.gz CMake-ec5c838fcb04f672e3ec03547fb571d40e789fdd.tar.bz2 |
Tests: Add tests for *OUTPUT_NAME properties
Diffstat (limited to 'Tests/RunCMake/install/TARGETS-OUTPUT_NAME.cmake')
-rw-r--r-- | Tests/RunCMake/install/TARGETS-OUTPUT_NAME.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/TARGETS-OUTPUT_NAME.cmake b/Tests/RunCMake/install/TARGETS-OUTPUT_NAME.cmake new file mode 100644 index 0000000..67e7069 --- /dev/null +++ b/Tests/RunCMake/install/TARGETS-OUTPUT_NAME.cmake @@ -0,0 +1,27 @@ +enable_language(C) + +add_executable(test1 main.c) +set_property(TARGET test1 PROPERTY OUTPUT_NAME test1out) +set_property(TARGET test1 PROPERTY RELEASE_OUTPUT_NAME test1rel) + +add_executable(test2 main.c) +set_property(TARGET test2 PROPERTY OUTPUT_NAME test2out) +set_property(TARGET test2 PROPERTY DEBUG_OUTPUT_NAME test2deb) + +add_executable(test3 main.c) +set_property(TARGET test3 PROPERTY RUNTIME_OUTPUT_NAME test3exc) + +add_library(test4 SHARED obj1.c) +set_property(TARGET test4 PROPERTY LIBRARY_OUTPUT_NAME test4lib) + +add_library(test5 STATIC obj1.c) +set_property(TARGET test5 PROPERTY ARCHIVE_OUTPUT_NAME test5ar) + +install(TARGETS + test1 + test2 + test3 + test4 + test5 + DESTINATION bin + ) |