X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c6d0617e3bab901c3ba1517afa9091d4efe173f5..1055bda9e0ceab0f8f185ac2ddf1c3c956fe59df:/buildtools/CPACK/src/CMakeMakeExeLib.txt diff --git a/buildtools/CPACK/src/CMakeMakeExeLib.txt b/buildtools/CPACK/src/CMakeMakeExeLib.txt index bfeb0e6e9e..8e173fb793 100644 --- a/buildtools/CPACK/src/CMakeMakeExeLib.txt +++ b/buildtools/CPACK/src/CMakeMakeExeLib.txt @@ -1,17 +1,17 @@ ### Make Libs -include(${PROJECT_DIRECTORY}/CPACK/src/CMakeFLEXml.txt) - if(supernovae) include(${PROJECT_DIRECTORY}/CPACK/src/CMakeSupernovae.txt) -else(supernovae) - add_library(simgrid SHARED ${simgrid_sources}) +else(supernovae) + add_library(simgrid STATIC ${simgrid_sources}) add_library(gras SHARED ${gras_sources}) add_library(smpi STATIC ${SMPI_SRC}) endif(supernovae) set(GRAS_DEP "pthread") -set(SIMGRID_DEP "") +if(HAVE_RUBY_H) + set(SIMGRID_DEP "ruby1.8") +endif(HAVE_RUBY_H) set(SMPI_DEP "") if(CMAKE_SYSTEM_NAME MATCHES "Darwin") @@ -21,21 +21,20 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Darwin") if(pthread) if(with_context MATCHES pthread) - SET(SIMGRID_DEP ${SIMGRID_DEP}pthread) - SET(ESPACE " ") + SET(SIMGRID_DEP "${SIMGRID_DEP} -lpthread") endif(with_context MATCHES pthread) if(with_context MATCHES windows) - SET(GRAS_DEP "") + SET(GRAS_DEP "msg") endif(with_context MATCHES windows) endif(pthread) if(HAVE_LUA) - SET(SIMGRID_DEP "${SIMGRID_DEP}${ESPACE}-ldl -llua5.1") + SET(SIMGRID_DEP "${SIMGRID_DEP} -ldl -llua5.1") endif(HAVE_LUA) if(HAVE_GTNETS) - SET(SIMGRID_DEP_GTNETS "gtnets ") + SET(SIMGRID_DEP "${SIMGRID_DEP} -lgtnets") endif(HAVE_GTNETS) ### Add definitions for compile @@ -43,10 +42,9 @@ endif(HAVE_GTNETS) #set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage") #add_definitions (-fprofile-arcs -ftest-coverage) -target_link_libraries(simgrid ${SIMGRID_DEP} ${SIMGRID_DEP_GTNETS}-fprofile-arcs) +target_link_libraries(simgrid ${SIMGRID_DEP} -fprofile-arcs) target_link_libraries(gras ${GRAS_DEP} -fprofile-arcs) -target_link_libraries(smpi ${SMPI_DEP} -fprofile-arcs) - +target_link_libraries(smpi simgrid ${SMPI_DEP} -fprofile-arcs) ### Make EXEs #tools @@ -70,6 +68,8 @@ if(NOT init) add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/xbt) add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/gras/datadesc) add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/gras/msg_handle) + add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/gras/empty_main) + add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/gras/small_sleep) add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/simdag) add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/simdag/network) add_subdirectory(${PROJECT_DIRECTORY}/teshsuite/simdag/network/p2p)