aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2022-10-21 21:32:59 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2022-10-21 21:32:59 -0400
commit69c056ff6083aabf46a12779f43c3f5fa573e9b5 (patch)
treeaa9e473f1ce5af5e985f845bc5d07e71d332b5d6 /CMakeLists.txt
parentaba5ca85720ebc98c393edd8641d14ff5a5468e5 (diff)
downloadsayeth-69c056ff6083aabf46a12779f43c3f5fa573e9b5.tar.gz
Implement art drivers as configs
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})