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

project(SocialAgents)

Pierre Kraemer's avatar
Pierre Kraemer committed
5
SET(CMAKE_BUILD_TYPE Release)
Pierre Kraemer's avatar
Pierre Kraemer committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

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

# define includes path
include_directories(
	/usr/include/libxml2/
	${CGoGN_ROOT_DIR}/Apps/Examples/SocialAgents/include
	${CGoGN_ROOT_DIR}/include
	${CGoGN_ROOT_DIR}/ThirdParty/AntTweakBar/include
	${CGoGN_ROOT_DIR}/ThirdParty/Numerical
	${CGoGN_ROOT_DIR}/ThirdParty/Numerical/UFconfig
	${CGoGN_ROOT_DIR}/ThirdParty/gzstream
	${CGoGN_ROOT_DIR}/ThirdParty/Zinri
)

#define exec to compile
add_executable(socialAgents ./src/viewer.cpp ./src/env_map.cpp ./src/agent.cpp ./src/simulator.cpp  )
target_link_libraries( socialAgents container topology utils algo ${COMMON_LIBS} )

add_executable(socialAgentsD ./src/viewer.cpp ./src/env_map.cpp ./src/agent.cpp ./src/simulator.cpp  )
target_link_libraries( socialAgentsD containerD topologyD utilsD algoD ${COMMON_LIBS} )