Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Dont set full path.
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
index 2ea763a..8bee2f2 100755 (executable)
@@ -421,17 +421,17 @@ ${PROJECT_DIRECTORY}/src/xbt_synchro_unit.c
 )
 
 set(TEST_CFILES
-${PROJECT_DIRECTORY}/src/xbt/cunit.c
-${PROJECT_DIRECTORY}/src/xbt/ex.c
-${PROJECT_DIRECTORY}/src/xbt/dynar.c
-${PROJECT_DIRECTORY}/src/xbt/dict.c
-${PROJECT_DIRECTORY}/src/xbt/set.c
-${PROJECT_DIRECTORY}/src/xbt/swag.c
-${PROJECT_DIRECTORY}/src/xbt/xbt_str.c
-${PROJECT_DIRECTORY}/src/xbt/xbt_strbuff.c
-${PROJECT_DIRECTORY}/src/xbt/xbt_sha.c
-${PROJECT_DIRECTORY}/src/xbt/config.c
-${PROJECT_DIRECTORY}/src/xbt/xbt_synchro.c
+xbt/cunit.c
+xbt/ex.c
+xbt/dynar.c
+xbt/dict.c
+xbt/set.c
+xbt/swag.c
+xbt/xbt_str.c
+xbt/xbt_strbuff.c
+xbt/xbt_sha.c
+xbt/config.c
+xbt/xbt_synchro.c
 )
 
 #Here must have all files which permit to generate source files
@@ -459,7 +459,7 @@ examples/amok/saturate/saturate.xml
 
 ### 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
@@ -469,7 +469,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
@@ -479,7 +479,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)
@@ -513,12 +513,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