1 cmake_minimum_required(VERSION 2.6)
3 set_source_files_properties(
4 ${CMAKE_CURRENT_BINARY_DIR}/_timer_simulator.c
5 ${CMAKE_CURRENT_BINARY_DIR}/_timer_client.c
6 PROPERTIES GENERATED true)
8 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
9 add_executable(timer_simulator ${CMAKE_CURRENT_BINARY_DIR}/_timer_simulator.c ${CMAKE_CURRENT_SOURCE_DIR}/timer.c)
10 add_executable(timer_client ${CMAKE_CURRENT_BINARY_DIR}/_timer_client.c ${CMAKE_CURRENT_SOURCE_DIR}/timer.c)
14 ${CMAKE_CURRENT_BINARY_DIR}/_timer_simulator.c
15 ${CMAKE_CURRENT_BINARY_DIR}/_timer_client.c
16 DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml
17 COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator timer ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml
18 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
21 ### Add definitions for compile
23 target_link_libraries(timer_simulator simgrid pthread m )
24 target_link_libraries(timer_client gras pthread m )
26 target_link_libraries(timer_simulator simgrid)
27 target_link_libraries(timer_client gras)
32 ${CMAKE_CURRENT_SOURCE_DIR}/test_rl.tesh
33 ${CMAKE_CURRENT_SOURCE_DIR}/test_sg_32.tesh
34 ${CMAKE_CURRENT_SOURCE_DIR}/test_sg_64.tesh
39 ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml
44 ${CMAKE_CURRENT_SOURCE_DIR}/timer.c