-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
61 lines (46 loc) · 1.69 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
project (pythonwrapper CXX)
# cmake_minimum_required (VERSION 2.8)
cmake_minimum_required (VERSION 3.0)
set(BOOST_INCLUDEDIR /usr/include)
# set(Python_ADDITIONAL_VERSIONS 3.5)
find_package(PythonLibs)
include_directories (${PYTHON_INCLUDE_DIRS})
link_directories(${PYTHON_LIBRARIES})
# SET(LUA_CONST "-I/usr/include/lua5.3 -I/usr/include/python3 -I/usr/local/include -lboost_python3 -lpython3.5m -o -shared -fPIC")
# add_definitions(${LUA_CONST})
# find_package(Boost 1.61.0 COMPONENTS python3)
find_package(Boost COMPONENTS python3)
include_directories (${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIR})
find_package(PkgConfig)
pkg_check_modules(ARGOS REQUIRED argos3_simulator)
set(ARGOS_PREFIX ${ARGOS_PREFIX} CACHE INTERNAL "")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ARGOS_PREFIX}/share/argos3/cmake)
# Set ARGoS include dir
include_directories(${CMAKE_SOURCE_DIR} ${ARGOS_INCLUDE_DIRS} ${GSL_INCLUDE_DIR} ${LUA_INCLUDE_DIR})
# Set ARGoS link dir
link_directories(${ARGOS_LIBRARY_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/controllers)
set(PYCONTROLLER_HEADERS
py_controller.h
py_wrapper.h
py_actusensor_wrapper_generic.h
py_actusensor_wrapper_footbot.h
py_actusensor_wrapper_epuck.h
)
set(PYCONTROLLER_SOURCES
py_controller.cpp
py_wrapper.cpp
py_actusensor_wrapper_generic.cpp
py_actusensor_wrapper_footbot.cpp
py_actusensor_wrapper_epuck.cpp
)
add_library (
py_controller_interface SHARED ${PYCONTROLLER_HEADERS} ${PYCONTROLLER_SOURCES})
target_link_libraries (py_controller_interface
argos3core_simulator
argos3plugin_simulator_footbot
argos3plugin_simulator_genericrobot
${PYTHON_LIBRARIES}
${Boost_LIBRARIES}
)