aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6c6069..819e8d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,4 +3,16 @@ project(sayeth C)
set(CMAKE_C_STANDARD 99)
-add_executable(sayeth main.c fierrhea.h jenkins.h romero.h)
+add_executable(sayeth main.c)
+set(DRIVER_DIR ${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME})
+
+option(DEV_ENABLE "Developer mode" OFF)
+if(DEV_ENABLE)
+ set(DRIVER_DIR ${CMAKE_SOURCE_DIR}/drivers)
+endif()
+
+configure_file(config.h.in config.h @ONLY)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+install(TARGETS sayeth DESTINATION bin)
+install(DIRECTORY drivers DESTINATION ${DRIVER_DIR})