Skip to content

Commit

Permalink
TEST TEST WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Jan 17, 2024
1 parent 26535a7 commit 5cd4b16
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,38 +32,37 @@ else()
set(WITH_COVERAGE NO)
endif()

FetchContent_Declare(sfl
FetchContent_Declare(sfl_fc
GIT_REPOSITORY "https://github.com/slavenf/sfl-library.git"
GIT_TAG "master"
GIT_SHALLOW ON
FIND_PACKAGE_ARGS)
FetchContent_MakeAvailable(sfl)
FIND_PACKAGE_ARGS NAMES sfl)

FetchContent_Declare(stx
FetchContent_Declare(stx_fc
GIT_REPOSITORY "https://github.com/Klebert-Engineering/stx.git"
GIT_TAG "main"
GIT_SHALLOW ON
FIND_PACKAGE_ARGS)
FIND_PACKAGE_ARGS NAMES stx)

FetchContent_Declare(Bitsery
FetchContent_Declare(Bitsery_fc
GIT_REPOSITORY "https://github.com/fraillt/bitsery.git"
GIT_TAG "v5.2.3"
GIT_SHALLOW ON
FIND_PACKAGE_ARGS)
FIND_PACKAGE_ARGS NAMES Bitsery)

FetchContent_Declare(nlohmann_json
FetchContent_Declare(nlohmann_json_fc
GIT_REPOSITORY "https://github.com/nlohmann/json.git"
GIT_TAG "v3.11.2"
GIT_SHALLOW ON
FIND_PACKAGE_ARGS)
FIND_PACKAGE_ARGS NAMES nlohmann_json)

FetchContent_Declare(Catch2
FetchContent_Declare(Catch2_fc
GIT_REPOSITORY "https://github.com/catchorg/Catch2.git"
GIT_TAG "v3.5.2"
GIT_SHALLOW ON
FIND_PACKAGE_ARGS)
FIND_PACKAGE_ARGS NAMES Catch2)

FetchContent_MakeAvailable(sfl stx Bitsery)
FetchContent_MakeAvailable(sfl_fc stx_fc Bitsery_fc)

if (NOT DEFINED SIMFIL_WITH_MODEL_JSON)
set(SIMFIL_WITH_MODEL_JSON YES)
Expand Down Expand Up @@ -132,7 +131,7 @@ if (MSVC)
endif()

if (SIMFIL_WITH_MODEL_JSON)
FetchContent_MakeAvailable(nlohmann_json)
FetchContent_MakeAvailable(nlohmann_json_fc)

target_compile_definitions(simfil
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(test.simfil)

set(CMAKE_CXX_STANDARD 17) # Required for catch2

FetchContent_MakeAvailable(Catch2)
FetchContent_MakeAvailable(Catch2_fc)

add_executable(test.simfil
token.cpp
Expand Down

0 comments on commit 5cd4b16

Please sign in to comment.