Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix copyright headers
[simgrid.git] / src / CMakeLists.txt
index 9071904..390100d 100644 (file)
@@ -1,17 +1,19 @@
 cmake_minimum_required(VERSION 2.6)
 
-set_source_files_properties(${PROJECT_DIRECTORY}/src/simgrid_units_main.c
-PROPERTIES GENERATED true)
+set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/src/")
+set(USE_TEST_UNITS "${PROJECT_DIRECTORY}/src/simgrid_units_main.c")
 
 foreach(file ${TEST_UNITS})
-       set_source_files_properties(${file}
-PROPERTIES GENERATED true)
+       set(USE_TEST_UNITS
+       ${USE_TEST_UNITS}
+       ${PROJECT_DIRECTORY}/src/${file}
+       )
 endforeach(file ${TEST_UNITS})
 
+set_source_files_properties(${USE_TEST_UNITS}
+PROPERTIES GENERATED true)
 
-set(EXECUTABLE_OUTPUT_PATH "./")
-
-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)