diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 28 |
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) |