From 8146e336d7057d2064ed43e6684a11f601c84f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Fri, 22 Jan 2016 08:56:34 +0100 Subject: Add fancontrol-ng --- CMakeLists.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f6614b..75fdd8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,11 +40,22 @@ add_threads (dwmstatus) add_executable (brightness brightness.c) target_link_libraries (brightness ${project_libraries}) -add_threads (brightness) + +add_executable (fancontrol-ng fancontrol-ng.c) +target_link_libraries (fancontrol-ng ${project_libraries}) # The files to be installed include (GNUInstallDirs) -install (TARGETS dwmstatus brightness DESTINATION ${CMAKE_INSTALL_BINDIR}) + +configure_file (${PROJECT_SOURCE_DIR}/fancontrol-ng.service.in + ${PROJECT_BINARY_DIR}/fancontrol-ng.service @ONLY) +install (FILES ${PROJECT_BINARY_DIR}/fancontrol-ng.service + DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system) +install (FILES fancontrol-ng.conf.example + DESTINATION ${CMAKE_INSTALL_DATADIR}/fancontrol-ng) + +install (TARGETS dwmstatus brightness fancontrol-ng + DESTINATION ${CMAKE_INSTALL_BINDIR}) install (FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR}) # CPack -- cgit v1.2.3