Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
3d1d4028f6ac3b7772bb35f9b19bbabf3d920b25
[simgrid.git] / examples / msg / tracing / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
4 set(LIBRARY_OUTPUT_PATH "${CMAKE_HOME_DIRECTORY}/lib")
5
6 add_executable(ms         ${CMAKE_CURRENT_SOURCE_DIR}/ms.c)
7 add_executable(categories ${CMAKE_CURRENT_SOURCE_DIR}/categories.c)
8 add_executable(procmig    ${CMAKE_CURRENT_SOURCE_DIR}/procmig.c)
9 add_executable(simple     ${CMAKE_CURRENT_SOURCE_DIR}/simple.c)
10
11 ### Add definitions for compile
12 target_link_libraries(ms simgrid m )
13 target_link_libraries(categories simgrid m )
14 target_link_libraries(procmig simgrid m )
15 target_link_libraries(simple simgrid m )
16
17 ## Clean generated files
18 get_directory_property(extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)
19 set_directory_properties(
20         PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
21         "${extra_clean_files};${CMAKE_CURRENT_BINARY_DIR}/ms.cat.plist;${CMAKE_CURRENT_BINARY_DIR}/ms.trace;${CMAKE_CURRENT_BINARY_DIR}/ms.uncat.plist;")