From 457127aa0495b65135d864f4cfcd4dc02d0cfb10 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 26 Apr 2017 20:52:52 +0100 Subject: [PATCH] Rename built binary to tawashi.cgi Also copy html dir when doing make install. --- CMakeLists.txt | 2 ++ src/CMakeLists.txt | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c7f88e..6a23ad0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,3 +8,5 @@ add_subdirectory(lib/incredis) add_subdirectory(lib/mstch) add_subdirectory(lib/houdini) add_subdirectory(src) + +install(DIRECTORY html DESTINATION .) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index da68766..8c3d4c2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -60,6 +60,11 @@ target_compile_options(${PROJECT_NAME} PRIVATE -fdiagnostics-color=always ) +set_target_properties( + ${PROJECT_NAME} + PROPERTIES SUFFIX .cgi +) + install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib RUNTIME DESTINATION bin