CMakeLists.txt 1.15 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1
2
3
4
cmake_minimum_required(VERSION 2.6)

SET(CMAKE_BUILD_TYPE Debug)

5
6
7
8
9
10
11
# FOR Qt4
FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})


Pierre Kraemer's avatar
Pierre Kraemer committed
12
13
14
15
16
17
18
19
20
21
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")

link_directories(
	${CGoGN_ROOT_DIR}/lib/Debug/
	${CGoGN_ROOT_DIR}/lib/Release/
)

# define includes path
include_directories(
	../include
Pierre Kraemer's avatar
Pierre Kraemer committed
22
	/usr/include/libxml2/
Pierre Kraemer's avatar
Pierre Kraemer committed
23
24
25
26
27
28
29
30
	${CGoGN_ROOT_DIR}/include
	${CGoGN_ROOT_DIR}/ThirdParty/Numerical
	${CGoGN_ROOT_DIR}/ThirdParty/Numerical/UFconfig
	${CGoGN_ROOT_DIR}/ThirdParty/gzstream
	${CGoGN_ROOT_DIR}/ThirdParty/Zinri
	${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
	${CGoGN_ROOT_DIR}/ThirdParty/Assimp/include
	${CGoGN_ROOT_DIR}/ThirdParty/glm
Pierre Kraemer's avatar
Pierre Kraemer committed
31
	${CMAKE_CURRENT_BINARY_DIR}
Pierre Kraemer's avatar
Pierre Kraemer committed
32
33
34
)

#define exec to compile
Pierre Kraemer's avatar
Pierre Kraemer committed
35
36
QT4_WRAP_UI( socialAgents_ui ../include/socialAgents.ui )
QT4_WRAP_CPP( socialAgents_moc ../include/viewer.h )
Pierre Kraemer's avatar
Pierre Kraemer committed
37
38
39
40
add_executable( socialAgentsD
	../src/viewer.cpp
	../src/env_map.cpp
	../src/agent.cpp
41
	../src/moving_obstacle.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
42
	../src/simulator.cpp
43
	../src/gl2ps.c
Pierre Kraemer's avatar
Pierre Kraemer committed
44
45
	${socialAgents_moc}
	${socialAgents_ui}
Pierre Kraemer's avatar
Pierre Kraemer committed
46
47
48
)

target_link_libraries( socialAgentsD
Pierre Kraemer's avatar
Pierre Kraemer committed
49
50
	${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} boost_thread-mt)