5
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
7
PROJECT(AGENTS_ROBOT3D_PLUGIN)
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/")
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.")
18
SET(AGENTS_ROBOT3D_PLUGIN_VERSION_MAJOR 0)
19
SET(AGENTS_ROBOT3D_PLUGIN_VERSION_MINOR 1)
21
##############################################################################
22
# Use the FindXXX utility classes
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)
34
FIND_PACKAGE(Robot3D REQUIRED)
36
# The directories where includes (.h, .hpp, .so) files can be found
37
INCLUDE_DIRECTORIES("${PROJECT_SOURCE_DIR}/inc")
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)
44
SET(CMAKE_INSTALL_PREFIX "/usr/lib/robot3d/components/" CACHE TYPE " " FORCE)
46
# The header files of required libraries are located in
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})
57
INCLUDE_DIRECTORIES(${ROBOT3D_INCLUDE_DIR})
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")
64
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
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}")
71
# Include directories of the project