File tree Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Expand file tree Collapse file tree 4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,4 @@ if (PROFILING_MODE)
46
46
else ()
47
47
target_link_libraries (crowdsim PUBLIC ${SDL2_LIBRARIES} external )
48
48
endif ()
49
- target_include_directories (crowdsim PUBLIC " ${PROJECT_BINARY_DIR} " "${PROJECT_SOURCE_DIR} /external" )
49
+ target_include_directories (crowdsim PUBLIC ${PROJECT_BINARY_DIR} "${PROJECT_SOURCE_DIR} /external" )
Original file line number Diff line number Diff line change 1
1
# Copyright (C) 2022 Codeplay Software Ltd.
2
2
3
+ include ("${CMAKE_SOURCE_DIR} /vendor/rapidjson.cmake" )
4
+
3
5
add_library (external Actor.cpp
4
6
Room.cpp
5
7
Path .cpp
@@ -10,3 +12,7 @@ add_library(external Actor.cpp
10
12
RandomNumber.cpp
11
13
Stats.cpp
12
14
)
15
+
16
+ target_include_directories (external PUBLIC ${PROJECT_BINARY_DIR} ${RAPIDJSON_INCLUDE_DIR} )
17
+
18
+ add_dependencies (external rapidjson )
Original file line number Diff line number Diff line change 29
29
#include " Actor.hpp"
30
30
#include " Path.hpp"
31
31
#include " Room.hpp"
32
+ #include " rapidjson/document.h"
32
33
#include < array>
33
34
#include < fstream>
34
35
#include < iostream>
35
- #include < rapidjson/document.h>
36
36
#include < sstream>
37
37
#include < string>
38
38
#include < sycl/sycl.hpp>
Original file line number Diff line number Diff line change
1
+ # (C) Andreas Zimmerer https://www.jibbow.com/posts/rapidjson-cmake/
2
+
3
+ include (ExternalProject )
4
+ ExternalProject_Add (
5
+ rapidjson
6
+ PREFIX "vendor/rapidjson"
7
+ GIT_REPOSITORY "https://github.com/Tencent/rapidjson.git"
8
+ GIT_TAG f54b0e47a08782a6131cc3d60f94d038fa6e0a51
9
+ TIMEOUT 10
10
+ CMAKE_ARGS
11
+ -DRAPIDJSON_BUILD_TESTS=OFF
12
+ -DRAPIDJSON_BUILD_DOC=OFF
13
+ -DRAPIDJSON_BUILD_EXAMPLES=OFF
14
+ CONFIGURE_COMMAND ""
15
+ BUILD_COMMAND ""
16
+ INSTALL_COMMAND ""
17
+ UPDATE_COMMAND ""
18
+ )
19
+
20
+ ExternalProject_Get_Property (rapidjson source_dir )
21
+ set (RAPIDJSON_INCLUDE_DIR ${source_dir} /include )
You can’t perform that action at this time.
0 commit comments