-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexternal_deps.cmake
67 lines (38 loc) · 1.25 KB
/
external_deps.cmake
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# spdlog 1.9.2 or later
if (NOT DEFINED SPDLOG_DIR)
message(FATAL_ERROR "SPDLOG_DIR not defined!")
endif()
add_subdirectory(${SPDLOG_DIR} "spdlog")
# mimalloc 2.0.2 or later
if (DEFINED MIMALLOC_DIR)
add_subdirectory(${MIMALLOC_DIR} "mimalloc")
add_compile_definitions(USELIB_MIMALLOC)
else()
message(STATUS "Define MIMALLOC_DIR to utilize mimalloc lib")
endif()
# raylib 3.7.0 or later
# RAYLIB_DIR to be specified
if(DEFINED RAYLIB_DIR)
add_subdirectory(${RAYLIB_DIR} "raylib")
else()
message(STATUS "Define RAYLIB_DIR to build experiments that utilize Raylib")
endif()
#sokol
if (DEFINED SOKOL_DIR)
set(sokol_header_files
${SOKOL_DIR}/sokol_app.h
${SOKOL_DIR}/sokol_gfx.h
${SOKOL_DIR}/sokol_glue.h)
add_library(sokol INTERFACE)
target_sources(sokol INTERFACE ${sokol_header_files})
target_include_directories(sokol INTERFACE ${SOKOL_DIR}/)
else()
message(STATUS "Define SOKOL_DIR to build experiments that utilize sokol lib")
endif()
#enkiTS
if (DEFINED ENKITS_DIR)
add_subdirectory(${ENKITS_DIR} "enkiTS")
add_compile_definitions(USELIB_ENKITS)
else()
message(STATUS "Define ENKITS_DIR to build experiments that utilize enkiTS threading/tasks library")
endif()