Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[example/simdag/dot] correction of the CMakeList
[simgrid.git] / examples / simdag / dot / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")                       
4
5 add_executable(dot_test dot_test.c)                                     #add_executable(<name_of_target> <src list>)
6 add_executable(simulate_dot simulate_dot.c)                                     #add_executable(<name_of_target> <src list>)
7
8 ### Add definitions for compile
9 if(NOT WIN32)
10   target_link_libraries(dot_test simgrid pthread m)     #target_link_libraries(<name_of_targe> <dependencies>)
11   target_link_libraries(simulate_dot simgrid pthread m)         #target_link_libraries(<name_of_targe> <dependencies>)
12
13         get_directory_property(extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)
14         set_directory_properties(
15          PROPERTIES
16          ADDITIONAL_MAKE_CLEAN_FILES "${extra_clean_files};${CMAKE_CURRENT_BINARY_DIR}/dot_test; ${CMAKE_CURRENT_BINARY_DIR}/simulate_dot;")
17   
18 else(NOT WIN32)
19   target_link_libraries(dot_test simgrid)       #target_link_libraries(<name_of_targe> <dependencies>)
20   target_link_libraries(simulate_dot simgrid)   #target_link_libraries(<name_of_targe> <dependencies>)
21         set_directory_properties(
22          PROPERTIES
23          ADDITIONAL_MAKE_CLEAN_FILES "${extra_clean_files};${CMAKE_CURRENT_BINARY_DIR}/dot_test; ${CMAKE_CURRENT_BINARY_DIR}/simulate_dot;")
24 endif(NOT WIN32)