Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4b56ca6a7e2cc7314987c48fa7cffa832d10bcdc
[simgrid.git] / examples / gras / synchro / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set_source_files_properties(${PROJECT_DIRECTORY}/examples/gras/synchro/_synchro_simulator.c ${PROJECT_DIRECTORY}/examples/gras/synchro/_synchro_philosopher.c
4 PROPERTIES GENERATED true)
5
6 set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/examples/gras/synchro/")
7
8 add_executable(synchro_simulator ${PROJECT_DIRECTORY}/examples/gras/synchro/_synchro_simulator.c ${PROJECT_DIRECTORY}/examples/gras/synchro/philosopher.c)
9 add_executable(synchro_philosopher ${PROJECT_DIRECTORY}/examples/gras/synchro/_synchro_philosopher.c  ${PROJECT_DIRECTORY}/examples/gras/synchro/philosopher.c)
10
11 ### Add definitions for compile
12 target_link_libraries(synchro_simulator simgrid pthread m -fprofile-arcs)
13 target_link_libraries(synchro_philosopher gras pthread m -fprofile-arcs)