CMake workflow update
Signed-off-by: Tiago Garcia <tiago.rgarcia@ua.pt>
This commit is contained in:
parent
d514ea5aab
commit
42295e5550
|
@ -1,15 +1,15 @@
|
||||||
# CMake build directories
|
# CMake build directories
|
||||||
/build*/
|
CMakeFiles/
|
||||||
/CMakeFiles/
|
CMakeCache.txt
|
||||||
/CMakeCache.txt
|
cmake_install.cmake
|
||||||
/cmake_install.cmake
|
*.cmake
|
||||||
/*.cmake
|
*.cbp
|
||||||
/*.cbp
|
*.layout
|
||||||
/*.layout
|
*.stackdump
|
||||||
/*.stackdump
|
CPackConfig.cmake
|
||||||
/CPackConfig.cmake
|
Makefile
|
||||||
/Makefile
|
CTestTestfile.cmake
|
||||||
/CTestTestfile.cmake
|
install_manifest.txt
|
||||||
|
|
||||||
# Compiled binaries
|
# Compiled binaries
|
||||||
/bin/
|
/bin/
|
||||||
|
|
|
@ -49,7 +49,7 @@ set_target_properties(${EXECUTABLE_NAME} PROPERTIES LINK_FLAGS
|
||||||
set(SERVICE_EXECUTABLE "/services/gh-wh-handler/${EXECUTABLE_NAME}")
|
set(SERVICE_EXECUTABLE "/services/gh-wh-handler/${EXECUTABLE_NAME}")
|
||||||
set(SERVICE_CONFIG "/services/gh-wh-handler/config.json")
|
set(SERVICE_CONFIG "/services/gh-wh-handler/config.json")
|
||||||
configure_file(
|
configure_file(
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/gh-wh-handler.service.in"
|
"${CMAKE_CURRENT_BINARY_DIR}/gh-wh-handler.service.in"
|
||||||
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gh-wh-handler.service"
|
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/gh-wh-handler.service"
|
||||||
@ONLY)
|
@ONLY)
|
||||||
install(CODE "file(MAKE_DIRECTORY /services/gh-wh-handler)")
|
install(CODE "file(MAKE_DIRECTORY /services/gh-wh-handler)")
|
||||||
|
@ -65,7 +65,7 @@ install(CODE "execute_process(COMMAND systemctl start gh-wh-handler)")
|
||||||
|
|
||||||
if(NOT TARGET uninstall)
|
if(NOT TARGET uninstall)
|
||||||
configure_file(
|
configure_file(
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/uninstall.cmake.in"
|
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake.in"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake" IMMEDIATE @ONLY)
|
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake" IMMEDIATE @ONLY)
|
||||||
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake)
|
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue