-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
132 lines (108 loc) · 3.92 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# HelloWorld is a minimal sample creating, stepping and deleting a Bullet dynamics world
cmake_minimum_required(VERSION 3.1)
set (CMAKE_CXX_STANDARD 11)
# SET (CMAKE_CXX_COMPILER "/usr/bin/clang++")
INCLUDE_DIRECTORIES(
lib/bullet-2.80/src
metasolver
metasolver/strategies/
problems/clp/containers
problems/clp/objects2
problems/clp/evaluators
problems/clp
problems/clp/plugins/kdtree
problems/clp/plugins/ga
problems/mclp
metasolver/plugins/mop/strategies/
)
LINK_DIRECTORIES(
lib/bullet-2.80/src/BulletCollision
lib/bullet-2.80/src/BulletDynamics
lib/bullet-2.80/src/LinearMath
)
LINK_LIBRARIES(
BulletDynamics BulletCollision LinearMath
)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -no-pie")
# ADD_DEFINITION(-g -pg)
ADD_LIBRARY(
bsg
metasolver/SearchStrategy.cpp
metasolver/GlobalVariables.cpp
metasolver/strategies/BSG.cpp
metasolver/strategies/Greedy.cpp
metasolver/State.cpp
)
ADD_LIBRARY(
bsg_mop
metasolver/plugins/mop/strategies/BSGMOP.cpp
)
ADD_LIBRARY(
nsga2
metasolver/plugins/mop/strategies/Chromosome.cpp
metasolver/plugins/mop/strategies/NSGA2.cpp
problems/clp/plugins/ga/clp_chromosome.cpp
)
ADD_LIBRARY(
clp
problems/clp/containers/AABBContainer.cpp
problems/clp/containers/AABBTree.cpp
problems/clp/evaluators/VCS_Function.cpp
problems/clp/evaluators/VLossFunction.cpp
problems/clp/objects2/AABB.cpp
problems/clp/objects2/Block.cpp
problems/clp/objects2/BoxShape.cpp
problems/clp/objects2/Space.cpp
problems/clp/objects2/SpaceSet.cpp
problems/clp/objects2/Block_fsb.cpp
)
ADD_LIBRARY(
clp_state
problems/clp/clpState.cpp
)
ADD_LIBRARY(
mclp_state
problems/mclp/mclp-state.cpp
)
ADD_LIBRARY(
clp_kdtree
problems/clp/plugins/kdtree/clpStatekd.cpp
problems/clp/plugins/kdtree/kdNode.cpp
problems/clp/plugins/kdtree/BlockSet.cpp
)
ADD_EXECUTABLE(MCLP problems/mclp/main/mclp-solver.cpp)
ADD_EXECUTABLE(BSG_CLP problems/clp/main_clp.cpp)
ADD_EXECUTABLE(BSG_CLP_ANN problems/clp/plugins/ann/main_clp_ann.cpp)
ADD_EXECUTABLE(CLP_GENSOLV problems/clp/plugins/ann/gen_ran_inst_solve.cpp)
ADD_EXECUTABLE(test_BSG_CLP problems/clp/test_clp.cpp)
ADD_EXECUTABLE(BSG_B problems/clp/clp_bsg-mop.cpp)
ADD_EXECUTABLE(test_BSGMOP_CLP problems/clp/test_clp_mop.cpp)
#ADD_EXECUTABLE(testEvalMOP problems/clp/test_evalMOP.cpp)
ADD_EXECUTABLE(CLP_gen problems/clp/ClpInstanceGenerator.cpp)
ADD_EXECUTABLE(NSGA_CLP problems/clp/plugins/ga/main.cpp)
target_link_libraries(MCLP mclp_state clp bsg)
target_link_libraries(BSG_CLP clp_state clp clp_kdtree bsg)
target_link_libraries(BSG_CLP_ANN clp_state clp clp_kdtree bsg)
target_link_libraries(test_BSG_CLP clp_state clp clp_kdtree bsg)
target_link_libraries(CLP_GENSOLV clp_state clp clp_kdtree bsg)
target_link_libraries(NSGA_CLP clp_state clp nsga2 bsg)
target_link_libraries(BSG_B bsg_mop clp_state clp bsg)
target_link_libraries(test_BSGMOP_CLP bsg_mop clp_state clp bsg)
#target_link_libraries(testEvalMOP bsg_mop clp_state clp bsg)
enable_testing()
add_test( NAME o-search
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/BSG_B problems/clp/benchs/BRwp-1.0-0.5/BR4.txt -i 1 --min_fr=0.98 -t 1 -s o-search --fp=R -f BRwp )
add_test( NAME bsg
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/BSG_B problems/clp/benchs/BRwp-1.0-0.5/BR4.txt -i 1 --min_fr=0.98 -t 1 -s bsg --fp=R -f BRwp )
add_test( NAME bsg_p
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/BSG_B problems/clp/benchs/BRwp-1.0-0.5/BR4.txt -i 1 --min_fr=0.98 -t 1 -s bsg_p --fp=R -f BRwp )
add_test( NAME bsg_vp
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/BSG_B problems/clp/benchs/BRwp-1.0-0.5/BR4.txt -i 1 --min_fr=0.98 -t 2 -s bsg_vp --fp=R -f BRwp )
IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
SET_TARGET_PROPERTIES(AppHelloWorld PROPERTIES DEBUG_POSTFIX "_Debug")
SET_TARGET_PROPERTIES(AppHelloWorld PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel")
SET_TARGET_PROPERTIES(AppHelloWorld PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo")
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)