Files
CMake/Tests/RunCMake/CPack/tests/SOURCE_PACKAGE/test.cmake
Domen Vrankar 53a69c7dd4 Tests: CPack move tests to separate dir
For greater transparency tests
are moved to a subfolder with
each test having its own dir.
2016-11-27 23:20:34 +01:00

8 lines
254 B
CMake

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")