-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
48 lines (30 loc) · 1.47 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
cmake_minimum_required(VERSION 2.8)
message(STATUS "")
message(STATUS "============================================")
message(STATUS " multi-Objective controller")
message(STATUS "============================================")
include(cmake/base.cmake)
include(cmake/eigen.cmake)
# These variables have to be defined before running setup_project
set(PROJECT_NAME impactControllers)
set(PROJECT_DESCRIPTION "A Multi-objective QP controller")
set(PROJECT_URL https://github.com/wyqsnddd/multiObjectiveController)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CXX_DISABLE_WERROR 1)
setup_project()
enable_language(C)
search_for_eigen()
find_package(DART REQUIRED COMPONENTS utils-urdf optimizer-nlopt gui-osg collision-bullet CONFIG)
find_package(Bullet REQUIRED)
FIND_PACKAGE(Boost COMPONENTS program_options REQUIRED )
include_directories(${DART_INCLUDE_DIRS} ${NLOPT_INCLUDE_DIRS})
file(GLOB lib_srcs src/*.cpp)
add_library(${PROJECT_NAME} SHARED ${lib_srcs})
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(${PROJECT_NAME} ${DART_LIBRARIES} ${NLOPT_LIBRARIES} dart-optimizer-nlopt )
set_target_properties(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
#===============================================================================
# Add sub-directories
#===============================================================================
add_subdirectory(impactExampleOne)
setup_project_finalize()