-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (34 loc) · 1.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.16)
project(QoraalEngine LANGUAGES C)
# --------------------
# 1) Fetch the Qoraal repo
# --------------------
include(FetchContent)
FetchContent_Declare(
qoraal
GIT_REPOSITORY https://github.com/navaro/qoraal.git
GIT_TAG main # or whatever branch/commit you need
SOURCE_SUBDIR .
)
set(CFG_ENGINE_REGISTRY_DISABLE ON CACHE BOOL "Disable engine registry")
FetchContent_Declare(
qoraal_engine
GIT_REPOSITORY https://github.com/navaro/qoraal-engine.git
GIT_TAG main # or whatever branch/commit you need
SOURCE_SUBDIR .
)
FetchContent_Declare(
qoraal_http
GIT_REPOSITORY https://github.com/navaro/qoraal-http.git
GIT_TAG main # or whatever branch/commit you need
SOURCE_SUBDIR .
)
FetchContent_MakeAvailable(qoraal qoraal_engine qoraal_http)
# Include directories
include_directories(include)
include_directories("${qoraal_SOURCE_DIR}/include")
include_directories("${qoraal_engine_SOURCE_DIR}/include")
include_directories("${qoraal_http_SOURCE_DIR}/include")
# Add subdirectories
add_subdirectory(src)
# Set compile-time definitions for the qoraal OS