Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Massive mv to use cmake as the default compilation infrastructure.
[simgrid.git] / examples / gras / spawn / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set_source_files_properties(_spawn_simulator.c _spawn_child.c _spawn_father.c
4 PROPERTIES GENERATED true)
5
6 set(EXECUTABLE_OUTPUT_PATH "./")
7 set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
8
9 add_executable(spawn_simulator _spawn_simulator.c spawn_father.c spawn_child.c spawn_common.c)
10 add_executable(spawn_child _spawn_child.c spawn_child.c spawn_common.c)
11 add_executable(spawn_father _spawn_father.c  spawn_father.c spawn_child.c spawn_common.c)
12
13 ### Add definitions for compile
14 target_link_libraries(spawn_simulator simgrid pthread m -fprofile-arcs)
15 target_link_libraries(spawn_child gras pthread m -fprofile-arcs)
16 target_link_libraries(spawn_father gras pthread m -fprofile-arcs)
17