SOURCE_PACKAGE.cmake 296 Bytes
Newer Older
1
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/main.cpp"
2
    "int main() {return 0;}\n")
3
4
5
6
7
8
9
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")