CMakeLists.txt 1.82 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Crowd Simulator Engine
# Copyright (C) 2018 - Inria Rennes - Rainbow - Julien Pettre
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#
#
#
# Authors: Axel Lopez Gandia, Javad Amirian, Florian Berton,
# Julien Legros, Lucas Pelerin, Beatriz Cabrero Daniel, Fabien Grzeskowiak
# 
# Contact: crowd_group@inria.fr

25 26
cmake_minimum_required( VERSION 2.8 )
project( CrowdSimulator )
LOPEZ GANDIA Axel's avatar
LOPEZ GANDIA Axel committed
27
set (CMAKE_CXX_STANDARD 14)
28

Javad AMIRIAN's avatar
Javad AMIRIAN committed
29
#set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
30 31

set(Boost_USE_STATIC_LIBS ON)
Javad AMIRIAN's avatar
Javad AMIRIAN committed
32
find_package(Boost COMPONENTS system filesystem regex REQUIRED)
33 34 35 36
include_directories( ./include )

link_directories( ./lib/${CMAKE_BUILD_TYPE} )

37 38
link_directories(${Boost_LIBRARY_DIRS})
include_directories( ${Boost_INCLUDE_DIRS} )
39

Javad AMIRIAN's avatar
Javad AMIRIAN committed
40
file( GLOB_RECURSE source_files src/* include/*)
41

Javad AMIRIAN's avatar
Javad AMIRIAN committed
42
add_executable(my_app main.cpp ${source_files} )
Javad AMIRIAN's avatar
Javad AMIRIAN committed
43
add_executable(test_xmlparser ./test/test_xmlparser.cpp ${source_files})
44
add_executable(test_socialforces ./test/SocialForcesExample.cpp ${source_files})
Javad AMIRIAN's avatar
Javad AMIRIAN committed
45 46 47 48

target_link_libraries(my_app  ${Boost_LIBRARIES})
target_link_libraries(test_xmlparser  ${Boost_LIBRARIES})
target_link_libraries(test_socialforces  ${Boost_LIBRARIES})
49 50
#message(${Boost_LIBRARIES})
#message(${Boost_LIBRARY_DIRS})