summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-03-01 23:51:42 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-03-01 23:51:42 (GMT)
commit642fa25da095b346d559ad39624eda79b0bd2ff8 (patch)
tree9d0dcaa3090d92ec1478d6ca03f7967628cd262e /Tests
parent378eb5b712bb8f131e62aa343e3ec27d446dc098 (diff)
downloadCMake-642fa25da095b346d559ad39624eda79b0bd2ff8.zip
CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.tar.gz
CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.tar.bz2
CPackWIX: support installation of empty directories
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CPackWiXGenerator/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CPackWiXGenerator/CMakeLists.txt b/Tests/CPackWiXGenerator/CMakeLists.txt
index 9957f6b..638e788 100644
--- a/Tests/CPackWiXGenerator/CMakeLists.txt
+++ b/Tests/CPackWiXGenerator/CMakeLists.txt
@@ -9,6 +9,11 @@ target_link_libraries(my-libapp mylib)
add_executable(my-other-app myotherapp.cpp)
+file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/empty)
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/empty
+ DESTINATION extras
+ COMPONENT extras)
+
install(TARGETS mylib
ARCHIVE
DESTINATION lib
@@ -72,6 +77,12 @@ cpack_add_component_group(Development
EXPANDED
DESCRIPTION "All of the tools you'll ever need to develop software")
+cpack_add_component(extras
+ DISPLAY_NAME "Extras"
+ DESCRIPTION "Extras"
+ GROUP Runtime
+ INSTALL_TYPES Full)
+
cpack_add_component(applications
REQUIRED
DISPLAY_NAME "MyLib Application"