Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add testall to cmake.
[simgrid.git] / src / CMakeLists.txt
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644 (file)
index 0000000..be55ea8
--- /dev/null
@@ -0,0 +1,17 @@
+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 "./")
+
+add_executable(testall ${TEST_UNITS} ${PROJECT_DIRECTORY}/src/simgrid_units_main.c)
+
+### Add definitions for compile
+target_link_libraries(testall gras m -fprofile-arcs)