]> AND Public Git Repository - simgrid.git/blobdiff - src/CMakeLists.txt
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
memory address is the unique identifier of links in the paje trace file
[simgrid.git] / src / CMakeLists.txt
index be55ea8625b77ceeabfe37e7e8e00be11c1275d8..9554134b2f18da381210fce5afdd62c2ddf803df 100644 (file)
@@ -1,17 +1,22 @@
 cmake_minimum_required(VERSION 2.6)
 
-set_source_files_properties(${PROJECT_DIRECTORY}/src/simgrid_units_main.c
-PROPERTIES GENERATED true)
-
-foreach(file ${TEST_UNITS})
-       set_source_files_properties(${PROJECT_DIRECTORY}/src/${file}
-PROPERTIES GENERATED true)
-endforeach(file ${TEST_UNITS})
+set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/src/")
 
+set(USE_TEST_UNITS
+${TEST_UNITS}
+${PROJECT_DIRECTORY}/src/simgrid_units_main.c
+)
 
-set(EXECUTABLE_OUTPUT_PATH "./")
+set_source_files_properties(${USE_TEST_UNITS}
+PROPERTIES GENERATED true)
 
-add_executable(testall ${TEST_UNITS} ${PROJECT_DIRECTORY}/src/simgrid_units_main.c)
+add_executable(testall ${USE_TEST_UNITS})
 
 ### Add definitions for compile
-target_link_libraries(testall gras m -fprofile-arcs)
+if(NOT WIN32)
+    target_link_libraries(testall gras m)
+else(NOT WIN32)
+    target_link_libraries(testall gras)
+endif(NOT WIN32)
+
+add_dependencies(testall units_files)
\ No newline at end of file