diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-08-19 09:11:09 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-08-19 09:11:09 +0200 |
| commit | e2dad5f30ca4d8502558e0560d2059a51aae4c4c (patch) | |
| tree | 4be91eaa56c58403d77c6a5b694a9ddc49a4b481 /core/CMakeLists.txt | |
| parent | a4e62c525fdc6b9662cdd48aaef2de7e9376f062 (diff) | |
| download | turns-e2dad5f30ca4d8502558e0560d2059a51aae4c4c.tar.xz turns-e2dad5f30ca4d8502558e0560d2059a51aae4c4c.zip | |
core: add settings accessor
Diffstat (limited to 'core/CMakeLists.txt')
| -rw-r--r-- | core/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 9b6390c..5ec88e4 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -4,6 +4,7 @@ add_library("core" "src/disposition.cpp" "src/init.cpp" "src/participant.cpp" + "src/settings.cpp" "src/turn_order.cpp" ) @@ -16,6 +17,12 @@ target_compile_options("core" PUBLIC "$<$<CXX_COMPILER_ID:GNU,Clang>:-pedantic-errors>" ) +if(NOT TURNS_USE_INSTALLED_SCHEMA_FILES) + target_compile_definitions("core" PUBLIC + "TURNS_SETTINGS_SCHEMA_DIR=\"${CMAKE_CURRENT_BINARY_DIR}\"" + ) +endif() + target_include_directories("core" PUBLIC "include" ) @@ -26,8 +33,17 @@ target_link_libraries("core" PUBLIC "nlohmann_json::nlohmann_json" ) +target_add_glib_schemas("core" + SCHEMA_DIR "schemas" +) + enable_coverage("core") +install(FILES + "schemas/ch.arknet.Turns.gschema.xml" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glib-2.0/schemas" +) + # Tests add_executable("core-tests" |
