summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-05 19:41:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-05 19:41:35 -0500
commita531cdb8c1e6c47e675f6c256012e61812ce0a44 (patch)
tree2645905f4b60866f1d329217035a6dce72b5ca7f /CMakeLists.txt
parent18700b31ed2bc43d5e76ee128d9d68b82dab798e (diff)
downloadhorizon-a531cdb8c1e6c47e675f6c256012e61812ce0a44.tar.gz
horizon-a531cdb8c1e6c47e675f6c256012e61812ce0a44.tar.bz2
horizon-a531cdb8c1e6c47e675f6c256012e61812ce0a44.tar.xz
horizon-a531cdb8c1e6c47e675f6c256012e61812ce0a44.zip
Initial prototype for a script parsing API
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..8e11d96
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,28 @@
+cmake_minimum_required(VERSION 3.4)
+
+include(FindPkgConfig)
+
+project(Horizon
+ LANGUAGES CXX
+ VERSION 0.1.0)
+
+pkg_check_modules(LIBUDEV REQUIRED libudev)
+pkg_check_modules(PARTED REQUIRED libparted)
+find_library(BCNM_LIBRARY REQUIRED wpactrl PATH_SUFFIXES bcnm)
+
+set(HSCRIPT_SOURCE
+ hscript/script.cc
+)
+
+set(HSCRIPT_INCLUDE
+ hscript/script.hh
+ hscript/keymanager.hh
+ hscript/key.hh
+)
+
+add_library(hscript SHARED ${HSCRIPT_SOURCE})
+target_compile_features(hscript PRIVATE cxx_nullptr)
+target_compile_features(hscript PUBLIC cxx_unicode_literals)
+
+install(TARGETS hscript DESTINATION lib)
+install(FILES ${HSCRIPT_INCLUDE} DESTINATION include/hscript)