summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake
blob: 946439dd31ba4c15812e76d37aa3a85558a7b647 (plain)
1
2
3
4
5
6
7
8
9
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
    "int main() {return 0;}\n")
add_executable(test_prog "${CMAKE_CURRENT_BINARY_DIR}/main.cpp")

install(TARGETS test_prog DESTINATION foo COMPONENT applications)

set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")

set(CPACK_PACKAGE_NAME "source_package")