~danfis/robot3d/connect-agent

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Daniel Fiser
  • Date: 2011-12-09 10:43:47 UTC
  • Revision ID: danfis@danfis.cz-20111209104347-vi1hbxus3uokdljn
Two controllers for connect demo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##
 
2
# author Daniel Fiser
 
3
#
 
4
 
 
5
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 
6
 
 
7
PROJECT(AGENTS_ROBOT3D_PLUGIN)
 
8
 
 
9
# The directory with all the FindXXX modules
 
10
# This is the only link between the plugin and the simulator.
 
11
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
 
12
 
 
13
# The macro below forces the build directory to be different from source directory:
 
14
INCLUDE( MacroEnsureOutOfSourceBuild )
 
15
MACRO_ENSURE_OUT_OF_SOURCE_BUILD("${PROJECT_NAME} requires an out of source build.")
 
16
 
 
17
# Versioning
 
18
SET(AGENTS_ROBOT3D_PLUGIN_VERSION_MAJOR 0)
 
19
SET(AGENTS_ROBOT3D_PLUGIN_VERSION_MINOR 1)
 
20
 
 
21
##############################################################################
 
22
# Use the FindXXX utility classes
 
23
 
 
24
# General
 
25
#FIND_PACKAGE(OpenGL REQUIRED)
 
26
#FIND_PACKAGE(ODE REQUIRED)
 
27
#FIND_PACKAGE(Delta3D REQUIRED)
 
28
#FIND_PACKAGE(CEGUI REQUIRED)
 
29
#FIND_PACKAGE(OSG REQUIRED)
 
30
#FIND_PACKAGE(osgShadow REQUIRED)
 
31
#FIND_PACKAGE(XercesC REQUIRED)
 
32
#FIND_PACKAGE(Boost REQUIRED COMPONENTS filesystem system)
 
33
# Specific for plugin
 
34
FIND_PACKAGE(Robot3D REQUIRED)
 
35
 
 
36
# The directories where includes (.h, .hpp, .so) files can be found
 
37
INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/inc")
 
38
 
 
39
# A series of customizable options
 
40
#   We have to add here flags like BUILD_AUDIO etc
 
41
OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" ON)
 
42
 
 
43
 
 
44
SET(CMAKE_INSTALL_PREFIX "/usr/lib/robot3d/components/" CACHE TYPE " " FORCE)
 
45
 
 
46
# The header files of required libraries are located in
 
47
# General
 
48
#INCLUDE_DIRECTORIES(${DELTA3D_INCLUDE_DIR})
 
49
#INCLUDE_DIRECTORIES(${ODE_INCLUDE_DIR})
 
50
#INCLUDE_DIRECTORIES(${CEGUI_INCLUDE_DIR})
 
51
#INCLUDE_DIRECTORIES(${OPENCV_INCLUDE_DIR})
 
52
#INCLUDE_DIRECTORIES(${OSG_INCLUDE_DIR})
 
53
#INCLUDE_DIRECTORIES(${OSGSHADOW_INCLUDE_DIR})
 
54
#INCLUDE_DIRECTORIES(${XERCES_INCLUDE_DIR})
 
55
#INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
 
56
# Specific for plugin
 
57
INCLUDE_DIRECTORIES(${ROBOT3D_INCLUDE_DIR})
 
58
 
 
59
# Compiler flags
 
60
#SET(CMAKE_CXX_FLAGS "-g -Wall -Weffc++ -DdSINGLE") #-fstack-protector-all")
 
61
SET(CMAKE_CXX_FLAGS "-DdSINGLE")
 
62
SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -D_GLIBCXX_DEBUG")
 
63
 
 
64
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
 
65
 
 
66
# Some debug information
 
67
MESSAGE("${PROJECT_NAME} is using CXX flags: ${CMAKE_CXX_FLAGS}")
 
68
MESSAGE ("Libraries included: ${LIBS}")
 
69
MESSAGE ("Include directories: ${CEGUI_INCLUDE_DIR}")
 
70
 
 
71
# Include directories of the project
 
72
ADD_SUBDIRECTORY(src)
 
73
ADD_SUBDIRECTORY(inc)