Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add xbt/automaton/automaton_create.c to supernovae fragile sources.
[simgrid.git] / buildtools / Cmake / Supernovae.cmake
index 129f4ab..286d664 100644 (file)
@@ -4,14 +4,19 @@
 ### Add here every files that should not be supernovaed (generated files) ###
 #############################################################################
 set(simgrid_fragile_sources 
-       src/gras/DataDesc/ddt_parse.yy.c
-       src/surf/surfxml_parse.c
-       src/xbt/graphxml_parse.c
-       src/simdag/sd_daxloader.c
+  src/simdag/sd_daxloader.c
+  src/surf/surfxml_parse.c
+  src/xbt/automaton/automaton_create.c
+  src/xbt/datadesc/ddt_parse.yy.c
+  src/xbt/graphxml_parse.c
+  src/xbt/mmalloc/mm.c
+  ${GTNETS_USED}
 )
 set(gras_fragile_sources
-       src/gras/DataDesc/ddt_parse.yy.c
-       src/xbt/graphxml_parse.c
+  src/xbt/automaton/automaton_create.c
+  src/xbt/datadesc/ddt_parse.yy.c
+  src/xbt/graphxml_parse.c
+  src/xbt/mmalloc/mm.c
 )
 
 #####################################################
@@ -22,11 +27,11 @@ set(gras_fragile_sources
 if (enable_supernovae) # I need supernovae
 
        # supernovae files are generated. I promise
-       set_source_files_properties(${CMAKE_HOME_DIRECTORY}/src/supernovae_sg.c
+       set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_sg.c
                                      PROPERTIES GENERATED true)
-       set_source_files_properties(${CMAKE_HOME_DIRECTORY}/src/supernovae_gras.c
+       set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_gras.c
                                      PROPERTIES GENERATED true)
-       set_source_files_properties(${CMAKE_HOME_DIRECTORY}/src/supernovae_smpi.c
+       set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_smpi.c
                                      PROPERTIES GENERATED true)
 
        ADD_CUSTOM_COMMAND(
@@ -64,4 +69,5 @@ if (enable_supernovae) # I need supernovae
 
        set(SMPI_SRC 
                ${CMAKE_CURRENT_BINARY_DIR}/src/supernovae_smpi.c)
+                               
 endif(enable_supernovae) # I need supernovae