diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-10-23 10:14:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-26 14:15:19 (GMT) |
commit | fe7f8c99a459f93df594a8e5c5f49389d71ae128 (patch) | |
tree | 193c19944985976c6ddbe7343cc33879286fecb0 /Tests/CPackWiXGenerator | |
parent | 20c0a6a0add0380290adab4989425d0b26e38d24 (diff) | |
download | CMake-fe7f8c99a459f93df594a8e5c5f49389d71ae128.zip CMake-fe7f8c99a459f93df594a8e5c5f49389d71ae128.tar.gz CMake-fe7f8c99a459f93df594a8e5c5f49389d71ae128.tar.bz2 |
CPackWiX: use safe IDs for generated start menu shortcuts
Diffstat (limited to 'Tests/CPackWiXGenerator')
-rw-r--r-- | Tests/CPackWiXGenerator/CMakeLists.txt | 14 | ||||
-rw-r--r-- | Tests/CPackWiXGenerator/myotherapp.cpp | 1 |
2 files changed, 11 insertions, 4 deletions
diff --git a/Tests/CPackWiXGenerator/CMakeLists.txt b/Tests/CPackWiXGenerator/CMakeLists.txt index 475e60d..b54925a 100644 --- a/Tests/CPackWiXGenerator/CMakeLists.txt +++ b/Tests/CPackWiXGenerator/CMakeLists.txt @@ -4,15 +4,17 @@ project(CPackWiXGenerator) add_library(mylib mylib.cpp) -add_executable(mylibapp mylibapp.cpp) -target_link_libraries(mylibapp mylib) +add_executable(my-libapp mylibapp.cpp) +target_link_libraries(my-libapp mylib) + +add_executable(my-other-app myotherapp.cpp) install(TARGETS mylib ARCHIVE DESTINATION lib COMPONENT libraries) -install(TARGETS mylibapp +install(TARGETS my-libapp my-other-app RUNTIME DESTINATION bin COMPONENT applications) @@ -36,7 +38,11 @@ set(CPACK_PACKAGE_INSTALL_DIRECTORY "CPack Component Example") set(CPACK_WIX_UPGRADE_GUID "BF20CE5E-7F7C-401D-8F7C-AB45E8D170E6") set(CPACK_WIX_UNINSTALL "1") -set(CPACK_PACKAGE_EXECUTABLES "mylibapp; CPack Wix Test") + +set(CPACK_PACKAGE_EXECUTABLES + "my-libapp" "CPack WiX Test" + "my-other-app" "Second CPack WiX Test" +) include(CPack) diff --git a/Tests/CPackWiXGenerator/myotherapp.cpp b/Tests/CPackWiXGenerator/myotherapp.cpp new file mode 100644 index 0000000..c272dab --- /dev/null +++ b/Tests/CPackWiXGenerator/myotherapp.cpp @@ -0,0 +1 @@ +int main() {}
\ No newline at end of file |