diff options
Diffstat (limited to 'Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake')
-rw-r--r-- | Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake b/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake new file mode 100644 index 0000000..9958c2a --- /dev/null +++ b/Tests/RunCMake/CPack/SOURCE_PACKAGE.cmake @@ -0,0 +1,9 @@ +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp" + "int main() {return 0;}") +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") |