build: enable CPack

This commit is contained in:
Danny Robson 2019-04-27 10:44:50 +10:00
parent 8b620dc4f5
commit 426a447af3

View File

@ -57,7 +57,15 @@ foreach (t analyse compare stat)
set_target_properties ("${t}" PROPERTIES
OUTPUT_NAME "emory-${t}"
)
install (TARGETS "${t}")
endforeach()
add_executable (emory tools/emory.cpp)
target_link_libraries (emory libemory)
install (TARGETS emory)
###############################################################################
set (CPACK_GENERATOR "TXZ")
set (CPACK_STRIP_FILES TRUE)
include (CPack)