Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Second commit for cmake in an other directory.
[simgrid.git] / examples / gras / properties / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set_source_files_properties(${PROJECT_DIRECTORY}/examples/gras/properties/_properties_simulator.c ${PROJECT_DIRECTORY}/examples/gras/properties/_properties_alice.c ${PROJECT_DIRECTORY}/examples/gras/properties/_properties_bob.c
4 PROPERTIES GENERATED true)
5
6 set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/examples/gras/properties/")
7
8 add_executable(properties_simulator ${PROJECT_DIRECTORY}/examples/gras/properties/_properties_simulator.c ${PROJECT_DIRECTORY}/examples/gras/properties/properties.c)
9 add_executable(properties_alice ${PROJECT_DIRECTORY}/examples/gras/properties/_properties_alice.c    ${PROJECT_DIRECTORY}/examples/gras/properties/properties.c)
10 add_executable(properties_bob ${PROJECT_DIRECTORY}/examples/gras/properties/_properties_bob.c    ${PROJECT_DIRECTORY}/examples/gras/properties/properties.c)
11
12 ### Add definitions for compile
13 target_link_libraries(properties_simulator simgrid pthread m -fprofile-arcs)
14 target_link_libraries(properties_alice gras pthread m -fprofile-arcs)
15 target_link_libraries(properties_bob gras pthread m -fprofile-arcs)