forked from pxscene/pxCore2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (30 loc) · 1.07 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
cmake_minimum_required(VERSION 2.8)
project(pxscene2d)
option(BUILD_PXCORE "BUILD_PXCORE" ON)
option(BUILD_PXSCENE "BUILD_PXSCENE" ON)
option(BUILD_PX_TESTS "BUILD_PX_TESTS" OFF)
option(BUILD_RTREMOTE_LIBS "BUILD_RTREMOTE_LIBS" OFF)
option(PREFER_SYSTEM_LIBRARIES "Prefer to use system libraries over bundled." "OFF")
option(DISABLE_DEBUG_MODE "Disable debugging mode." "OFF") # OFF for backward compatibility
option(SUPPORT_DUKTAPE "SUPPORT_DUKTAPE" ON)
option(SUPPORT_NODE "SUPPORT_NODE" ON)
if (BUILD_DUKTAPE)
message("Building duktape with pxcore")
add_subdirectory(examples/pxScene2d/external/dukluv)
endif (BUILD_DUKTAPE)
if (BUILD_PXCORE)
message("Building pxcore")
add_subdirectory(src)
endif (BUILD_PXCORE)
if (BUILD_RTREMOTE_LIBS)
message("Building rtRemote")
add_subdirectory(remote)
endif (BUILD_RTREMOTE_LIBS)
if (BUILD_PXSCENE)
message("Building pxscene")
add_subdirectory(examples/pxScene2d/src)
endif (BUILD_PXSCENE)
if (BUILD_PX_TESTS)
message("Including unit test support")
add_subdirectory(tests/pxScene2d)
endif (BUILD_PX_TESTS)