install(FILES CMakeLists.txt DESTINATION satu COMPONENT satu) install(FILES CMakeLists.txt DESTINATION dua COMPONENT dua) set(CPACK_PRE_BUILD_SCRIPTS "${CMAKE_CURRENT_LIST_DIR}/pre.cmake") set(CPACK_POST_BUILD_SCRIPTS "${CMAKE_CURRENT_LIST_DIR}/post.cmake") if(PACKAGING_TYPE STREQUAL "COMPONENT") set(CPACK_COMPONENTS_ALL satu dua) endif()