diff options
Diffstat (limited to 'lib/session_formats')
-rw-r--r-- | lib/session_formats/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/session_formats/meson.build | 9 | ||||
-rw-r--r-- | lib/session_formats/session_json.hpp | 2 |
3 files changed, 9 insertions, 10 deletions
diff --git a/lib/session_formats/CMakeLists.txt b/lib/session_formats/CMakeLists.txt new file mode 100644 index 0000000..75a472c --- /dev/null +++ b/lib/session_formats/CMakeLists.txt @@ -0,0 +1,8 @@ +add_library(session_formats STATIC session_json.hpp session_json.cpp) +target_link_libraries(session_formats PUBLIC Qt5::Core) +target_include_directories(session_formats INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} PUBLIC "${CMAKE_SOURCE_DIR}/include") + +add_executable(session_json test/json.cpp) +target_link_libraries(session_json PRIVATE session_formats Catch2::Catch2) +target_sanitize(session_json) +add_test(NAME session-json_format COMMAND session_json)
\ No newline at end of file diff --git a/lib/session_formats/meson.build b/lib/session_formats/meson.build deleted file mode 100644 index d5680cb..0000000 --- a/lib/session_formats/meson.build +++ /dev/null @@ -1,9 +0,0 @@ -lib_session_formats = declare_dependency( - include_directories: [ '.', plugininterfaces_include ], - link_with: static_library('sessionformats', [ 'session_json.cpp' ], include_directories: plugininterfaces_include, dependencies: dep_qt5) -) - -test('session-json format', executable('session_json', - sources: 'test/json.cpp', - dependencies: [ dep_qt5, dep_catch, lib_session_formats ] -)) diff --git a/lib/session_formats/session_json.hpp b/lib/session_formats/session_json.hpp index 142d9ef..2de6f5b 100644 --- a/lib/session_formats/session_json.hpp +++ b/lib/session_formats/session_json.hpp @@ -10,7 +10,7 @@ #define SESSION_JSON_HPP #include <QJsonObject> -#include "smolbote/session.hpp" +#include <smolbote/session.hpp> class JsonSession : public Session { |