Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
various cleanups in the CMakeLists.txt files
[simgrid.git] / tools / cmake / UnitTesting.cmake
index 2435bf6..cbbd15c 100644 (file)
@@ -6,7 +6,6 @@ set(TEST_CFILES
   src/xbt/ex.c
   src/xbt/dynar.c
   src/xbt/dict.c
-  src/xbt/set.c
   src/xbt/swag.c
   src/xbt/xbt_str.c
   src/xbt/xbt_strbuff.c
@@ -18,7 +17,6 @@ set(TEST_UNITS
   ${CMAKE_CURRENT_BINARY_DIR}/src/ex_unit.c
   ${CMAKE_CURRENT_BINARY_DIR}/src/dynar_unit.c
   ${CMAKE_CURRENT_BINARY_DIR}/src/dict_unit.c
-  ${CMAKE_CURRENT_BINARY_DIR}/src/set_unit.c
   ${CMAKE_CURRENT_BINARY_DIR}/src/swag_unit.c
   ${CMAKE_CURRENT_BINARY_DIR}/src/xbt_str_unit.c
   ${CMAKE_CURRENT_BINARY_DIR}/src/xbt_strbuff_unit.c
@@ -60,12 +58,6 @@ ADD_CUSTOM_COMMAND(
 
 set_source_files_properties(${TEST_UNITS} PROPERTIES GENERATED true)
 
-set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/src/")
-add_executable(testall ${TEST_UNITS})
+add_executable       (testall ${TEST_UNITS})
+target_link_libraries(testall simgrid)
 
-### Add definitions for compile
-if(NOT WIN32)
-  target_link_libraries(testall simgrid m)
-else()
-  target_link_libraries(testall simgrid)
-endif()