forked from BabylonJS/BabylonNative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 915 Bytes
/
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
set(SOURCES
"Include/Babylon/AppRuntime.h"
"Source/AppRuntime.cpp"
"Source/AppRuntime${NAPI_JAVASCRIPT_ENGINE}.cpp"
"Source/WorkQueue.cpp"
"Source/WorkQueue.h")
if(APPLE)
set(SOURCES ${SOURCES} "Source/AppRuntime${BABYLON_NATIVE_PLATFORM}.mm")
else()
set(SOURCES ${SOURCES} "Source/AppRuntime${BABYLON_NATIVE_PLATFORM}.cpp")
endif()
add_library(AppRuntime ${SOURCES})
warnings_as_errors(AppRuntime)
target_include_directories(AppRuntime
PRIVATE "Include/Babylon"
INTERFACE "Include")
if(UNIX AND NOT APPLE AND NOT ANDROID)
target_include_directories(AppRuntime INTERFACE "/usr/include/webkitgtk-4.0/")
endif()
target_link_to_dependencies(AppRuntime
PRIVATE arcana
PUBLIC JsRuntime)
target_compile_definitions(AppRuntime
PRIVATE NOMINMAX)
set_property(TARGET AppRuntime PROPERTY FOLDER Core)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})