-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (40 loc) · 1.37 KB
/
CMakeLists.txt
File metadata and controls
48 lines (40 loc) · 1.37 KB
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
# Copyright (C) 2011 Aldebaran Robotics
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
# Define the name of the project
project(movementgraph)
# This include enable you to use qibuild framework
find_package(qibuild)
# Create an option to make is possible compiling the module
# as a remote executable, or as a local shared library
option(MOVEMENTGRAPH_IS_REMOTE
"module is compiled as a remote module (ON or OFF)"
ON)
# Create a list of source files
set(_srcs
moveparams.cpp
vertex.cpp
edge.cpp
primalgraph.cpp
kernelgraph.cpp
graphcreator.cpp
main.cpp
)
if(MOVEMENTGRAPH_IS_REMOTE)
# Add a compile flag because code changes a little bit
# when we are compiling an executable
# This will let you use #ifdef HELLOWORLD_IS_REMOTE
# in the C++ code
add_definitions( " -DMOVEMENTGRAPH_IS_REMOTE ")
# Create an executable
qi_create_bin(graphcreator ${_srcs})
else()
# Create a plugin, that is a shared library, and make
# sure it is built in lib/naoqi, so that the naoqi executable
# can find it later
qi_create_lib(graphcreator SHARED ${_srcs} SUBFOLDER naoqi)
endif()
# Tell CMake that sayhelloworld depends on ALCOMMON and
# ALPROXIES.
# This will set the libraries to link sayhelloworld with,
# the include paths, and so on
qi_use_lib(graphcreator ALCOMMON ALPROXIES)