-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
76 lines (53 loc) · 1.37 KB
/
config.py
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
68
69
70
71
72
73
74
75
"""
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
INCLUDE($ENV{HOME}/.config.cmake)
FIND_PACKAGE(CMakeHelper)
PROJECT(nebula_python)
INCLUDE(../../config.cmake)
INCLUDE(cmh_build_config)
SET(SHARED True)
INCLUDE(cmh_boost)
FIND_PACKAGE(Boost 1.55 COMPONENTS
python
REQUIRED)
FIND_PACKAGE(galaxy 0 COMPONENTS std log console REQUIRED)
FIND_PACKAGE(nebula 0 COMPONENTS core REQUIRED)
#SET(Nebula_SHARED TRUE)
#FIND_PACKAGE(Nebula COMPONENETS core REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
INCLUDE_DIRECTORIES("/usr/include/python2.7")
include_directories("/usr/include/freetype2")
include_directories(${physx_INCLUDE_DIR})
ADD_DEFINITIONS("-D_DEBUG -DGAL_NET_USE_BOOST -DGLM_FORCE_RADIANS")
SET(libs
${nebula_LIBRARIES}
#${galaxy_LIBRARIES}
${Boost_LIBRARIES}
#galaxy_std_0
#nebula_core_0
python2.7
pthread
)
INCLUDE(cmh_library)
#ADD_SUBDIRECTORY(test)
"""
"""
l = Static("nebula_python")
l.inc_dirs.append("/usr/include/python2.7")
l.require("galaxy_std")
l.require("galaxy_log")
l.require("galaxy_console")
l.require("nebula_core")
l.make()
"""
l = Dynamic("nebula_python")
l.inc_dirs.append("/usr/include/python2.7")
l.require("galaxy_std", whole=True)
l.require("galaxy_log")
l.require("galaxy_net")
l.require("galaxy_console")
l.require("nebula_core", whole=True)
l.require("boost_serialization")
l.require("boost_python")
l.require("boost_thread")
l.make()