You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
677 B
15 lines
677 B
8 years ago
|
install(DIRECTORY DESTINATION empty_dir COMPONENT links)
|
||
|
install(FILES CMakeLists.txt DESTINATION non_empty_dir COMPONENT links)
|
||
|
|
||
|
# test symbolic link to an empty dir
|
||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink empty_dir symlink_to_empty_dir)
|
||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/symlink_to_empty_dir DESTINATION "." COMPONENT links)
|
||
|
|
||
|
# test symbolic link to a non empty dir
|
||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink non_empty_dir symlink_to_non_empty_dir)
|
||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/symlink_to_non_empty_dir DESTINATION "." COMPONENT links)
|
||
|
|
||
|
if(PACKAGING_TYPE STREQUAL "COMPONENT")
|
||
|
set(CPACK_COMPONENTS_ALL links)
|
||
|
endif()
|