Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve comments on examples
[simgrid.git] / src / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/src/")
4 set(USE_TEST_UNITS "${PROJECT_DIRECTORY}/src/simgrid_units_main.c")
5
6 foreach(file ${TEST_UNITS})
7         set(USE_TEST_UNITS
8         ${USE_TEST_UNITS}
9         ${PROJECT_DIRECTORY}/src/${file}
10         )
11 endforeach(file ${TEST_UNITS})
12
13 set_source_files_properties(${USE_TEST_UNITS}
14 PROPERTIES GENERATED true)
15
16 add_executable(testall ${USE_TEST_UNITS})
17
18 ### Add definitions for compile
19 target_link_libraries(testall gras m -fprofile-arcs)