Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We dont need those lines now.
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
index 82a0fec..6756c21 100755 (executable)
@@ -407,17 +407,17 @@ include/xbt.h
 )
 
 set(TEST_UNITS
-cunit_unit.c
-ex_unit.c
-dynar_unit.c
-dict_unit.c
-set_unit.c
-swag_unit.c
-xbt_str_unit.c
-xbt_strbuff_unit.c
-xbt_sha_unit.c
-config_unit.c
-xbt_synchro_unit.c
+${PROJECT_DIRECTORY}/src/cunit_unit.c
+${PROJECT_DIRECTORY}/src/ex_unit.c
+${PROJECT_DIRECTORY}/src/dynar_unit.c
+${PROJECT_DIRECTORY}/src/dict_unit.c
+${PROJECT_DIRECTORY}/src/set_unit.c
+${PROJECT_DIRECTORY}/src/swag_unit.c
+${PROJECT_DIRECTORY}/src/xbt_str_unit.c
+${PROJECT_DIRECTORY}/src/xbt_strbuff_unit.c
+${PROJECT_DIRECTORY}/src/xbt_sha_unit.c
+${PROJECT_DIRECTORY}/src/config_unit.c
+${PROJECT_DIRECTORY}/src/xbt_synchro_unit.c
 )
 
 set(TEST_CFILES
@@ -434,33 +434,9 @@ src/xbt/config.c
 src/xbt/xbt_synchro.c
 )
 
-#Here must have all files which permit to generate source files
-set(SRC_TO_LOOK
-src/surf/simgrid.dtd
-src/xbt/graphxml.dtd
-src/simdag/dax.dtd
-examples/gras/ping/ping.xml
-examples/gras/rpc/rpc.xml
-examples/gras/spawn/spawn.xml
-examples/gras/timer/timer.xml
-examples/gras/chrono/chrono.xml
-examples/gras/mutual_exclusion/simple_token/simple_token.xml
-examples/gras/mmrpc/mmrpc.xml
-examples/gras/all2all/all2all.xml
-examples/gras/pmm/pmm.xml
-examples/gras/synchro/synchro.xml
-examples/gras/properties/properties.xml
-teshsuite/gras/msg_handle/msg_handle.xml
-teshsuite/gras/empty_main/empty_main.xml
-teshsuite/gras/small_sleep/small_sleep.xml
-examples/amok/bandwidth/bandwidth.xml
-examples/amok/saturate/saturate.xml
-${TEST_CFILES}
-)
-
 ### depend of some variables setted upper
 # -->CONTEXT_THREADS
-if(${CONTEXT_THREADS})
+if(${CONTEXT_THREADS} OR WIN32)
        set(SURF_SRC
                ${SURF_SRC}
                src/xbt/xbt_os_thread.c
@@ -470,7 +446,7 @@ if(${CONTEXT_THREADS})
                ${EXTRA_DIST}
                src/simix/smx_context_sysv.c
        )
-else(${CONTEXT_THREADS})
+else(${CONTEXT_THREADS} OR WIN32)
        set(SURF_SRC
                ${SURF_SRC}
                src/simix/smx_context_sysv.c
@@ -480,7 +456,7 @@ else(${CONTEXT_THREADS})
                src/xbt/xbt_os_thread.c
                src/simix/smx_context_thread.c
        )
-endif(${CONTEXT_THREADS})
+endif(${CONTEXT_THREADS} OR WIN32)
 
 # -->HAVE_GTNETS
 if(HAVE_GTNETS)
@@ -514,12 +490,12 @@ set(simgrid_sources
        ${AMOK_SRC}
 )
 
-if(enable_model-checking AND HAVE_MMAP)
+if(HAVE_MC)
        set(simgrid_sources
-               ${simgrid_source}
+               ${simgrid_sources}
                ${MC_SRC}
                )
-endif(enable_model-checking AND HAVE_MMAP)
+endif(HAVE_MC)
 
 ### Gras Lib sources
 set(gras_sources
@@ -816,4 +792,4 @@ set(source_to_pack
        src/bindings/rubyDag/rb_SD_workstation.h
        src/bindings/rubyDag/rb_simdag.c
        src/bindings/rubyDag/simdag.rb
-)
+)
\ No newline at end of file