Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make example dot if graphviz is enable and if it is possible.
[simgrid.git] / src / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/src/")
4
5 set(USE_TEST_UNITS
6 ${TEST_UNITS}
7 ${PROJECT_DIRECTORY}/src/simgrid_units_main.c
8 )
9
10 set_source_files_properties(${USE_TEST_UNITS}
11 PROPERTIES GENERATED true)
12
13 add_executable(testall ${USE_TEST_UNITS})
14
15 ### Add definitions for compile
16 if(NOT WIN32)
17     target_link_libraries(testall gras m)
18 else(NOT WIN32)
19     target_link_libraries(testall gras)
20 endif(NOT WIN32)
21
22 add_dependencies(testall units_files)