mirror of
https://codeberg.org/vyn/rei-json.git
synced 2025-07-02 01:43:19 +00:00
first commit
This commit is contained in:
commit
eb5191a722
15 changed files with 1075 additions and 0 deletions
36
CMakeLists.txt
Normal file
36
CMakeLists.txt
Normal file
|
@ -0,0 +1,36 @@
|
|||
cmake_minimum_required(VERSION 3.21)
|
||||
project(rei-json LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(SLINT_FEATURE_RENDERER_SKIA ON)
|
||||
set(SLINT_FEATURE_RENDERER_SOFTWARE ON)
|
||||
|
||||
add_library(rei-json
|
||||
src/parse.cpp
|
||||
src/toString.cpp
|
||||
src/Object.cpp
|
||||
src/Array.cpp
|
||||
src/Field.cpp
|
||||
)
|
||||
target_include_directories(rei-json PRIVATE "external")
|
||||
target_include_directories(rei-json PRIVATE "include")
|
||||
|
||||
Include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
Catch2
|
||||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
||||
GIT_TAG v3.4.0 # or a later release
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(Catch2)
|
||||
|
||||
add_executable(tests
|
||||
tests/usage.cpp
|
||||
tests/parsing.cpp
|
||||
tests/stringify.cpp
|
||||
)
|
||||
target_include_directories(tests PRIVATE "include")
|
||||
target_link_libraries(tests PRIVATE rei-json)
|
||||
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
|
Loading…
Add table
Add a link
Reference in a new issue