-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
71 lines (58 loc) · 2.34 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
cmake_minimum_required(VERSION 2.8)
add_compile_options(-std=gnu++11)
add_compile_options(-Wdeprecated-declarations)
project(editor)
if (NOT EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
endif()
add_definitions(-DMSS_ROOT_DIR="${CMAKE_HOME_DIRECTORY}")
add_definitions(-DOPT_MODE="LINE_SEARCH")
#add_definitions(-DOPT_MODE="GRADIENT_DESCENT")
#add_definitions(-DXML_MODE="RHS")
add_definitions(-DXML_MODE="LSW")
include(FindOpenMP)
find_package(Eigen3 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(Boost 1.45.0 COMPONENTS filesystem)
include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${GLUT_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR})
#file(GLOB srcs
# "functions/*.h" "functions/*.cpp"
# "generator/*.h" "generator/*.cpp"
# "generator/motionAdjust/*.h" "generator/motionAdjust/*.cpp"
# "model/*.h" "model/*.cpp"
# "render/*.h" "render/*.cpp"
# "world/*.h" "world/*.cpp"
# "simpleMotion/*.h" "simpleMotion/*.cpp"
# "visualROM/*.h" "visualROM/*.cpp"
# "exams/*.h" "exams/*.cpp"
# "romEditor/*.h" "romEditor/*.cpp")
#find_package(DART REQUIRED COMPONENTS gui optimizer-ipopt CONFIG)
#add_compile_options(-DHAVE_CSTDDEF)
#include_directories(${Boost_INCLUDE_DIRS})
#include_directories(${DART_INCLUDE_DIRS})
#add_executable(skelgen ${srcs})
#target_link_libraries(skelgen ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES} ${DART_LIBRARIES} ${Boost_LIBRARIES} /usr/lib/x86_64-linux-gnu/libtinyxml.so stdc++fs)
file(GLOB srcs
"functions/*.h" "functions/*.cpp"
"generator/*.h" "generator/*.cpp"
"generator/motionAdjust/*.h" "generator/motionAdjust/*.cpp"
"model/*.h" "model/*.cpp"
"render/*.h" "render/*.cpp"
"world/*.h" "world/*.cpp"
"simpleMotion/*.h" "simpleMotion/*.cpp"
"visualROM/*.h" "visualROM/*.cpp"
"editor/*.h" "editor/*.cpp"
"romEditor/*.h" "romEditor/*.cpp"
"APTOpt/*.h" "APTOpt/*.cpp")
find_package(DART REQUIRED COMPONENTS gui optimizer-ipopt CONFIG)
add_compile_options(-DHAVE_CSTDDEF)
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${DART_INCLUDE_DIRS})
add_executable(editor ${srcs})
target_link_libraries(editor ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES} ${DART_LIBRARIES} ${Boost_LIBRARIES} /usr/lib/x86_64-linux-gnu/libtinyxml.so stdc++fs)