humotion / examples / meka / CMakeLists.txt @ 2be6243f
History | View | Annotate | Download (917 Bytes)
1 |
PROJECT(icub_humotion) |
---|---|
2 |
cmake_minimum_required(VERSION 2.8) |
3 |
|
4 |
FIND_PACKAGE(Boost REQUIRED COMPONENTS system thread) |
5 |
FIND_PACKAGE(humotion) |
6 |
|
7 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") |
8 |
|
9 |
# add include directories |
10 |
INCLUDE_DIRECTORIES(${YARP_INCLUDE_DIRS} ${ICUB_INCLUDE_DIRS} ${humotion_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} include/) |
11 |
link_directories(${Boost_LIBRARY_DIRS} ${humotion_LIBRARY_DIRS}) |
12 |
|
13 |
# add required linker flags |
14 |
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${ICUB_LINK_FLAGS}") |
15 |
SET(MAIN icub_humotion_server) |
16 |
|
17 |
file(GLOB DUMMY_HEADER_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} include/*.h) |
18 |
|
19 |
ADD_EXECUTABLE(${MAIN} src/main.cpp src/mekajointinterface.cpp src/meka_data_receiver.cpp ${DUMMY_HEADER_LIST}) |
20 |
|
21 |
TARGET_LINK_LIBRARIES(${MAIN} ${Boost_LIBRARIES} ${humotion_LIBRARIES}) |
22 |
set_property(TARGET ${MAIN} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) |
23 |
|
24 |
|
25 |
INSTALL(TARGETS ${MAIN} DESTINATION bin) |
26 |
|