diff options
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" |
