X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7721f9d25945759e012f67181e69550a3a222eb0..566be4f1a9393406a6adc1b2fe815c6d1ae4e3bc:/buildtools/Cmake/Supernovae.cmake diff --git a/buildtools/Cmake/Supernovae.cmake b/buildtools/Cmake/Supernovae.cmake index 36cc483b63..f3cee664a9 100644 --- a/buildtools/Cmake/Supernovae.cmake +++ b/buildtools/Cmake/Supernovae.cmake @@ -1,14 +1,14 @@ ### Make supernovae files and libs set(simgrid_fragile_sources -${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.yy.c -${PROJECT_DIRECTORY}/src/surf/surfxml_parse.c -${PROJECT_DIRECTORY}/src/xbt/graphxml_parse.c -${PROJECT_DIRECTORY}/src/simdag/sd_daxloader.c +src/gras/DataDesc/ddt_parse.yy.c +src/surf/surfxml_parse.c +src/xbt/graphxml_parse.c +src/simdag/sd_daxloader.c ) set(gras_fragile_sources -${PROJECT_DIRECTORY}/src/gras/DataDesc/ddt_parse.yy.c -${PROJECT_DIRECTORY}/src/xbt/graphxml_parse.c +src/gras/DataDesc/ddt_parse.yy.c +src/xbt/graphxml_parse.c ) set(temp_src_smpi "") set(temp_src_simgrid "") @@ -29,9 +29,9 @@ foreach(file ${simgrid_sources}) endif(file_delete MATCHES "${file}") endforeach (file_delete ${simgrid_fragile_sources}) if(en_plus) - if(file MATCHES "${PROJECT_DIRECTORY}/src/xbt/log.c") + if(file MATCHES "src/xbt/log.c") set(file "xbt/log.c") - endif(file MATCHES "${PROJECT_DIRECTORY}/src/xbt/log.c") + endif(file MATCHES "src/xbt/log.c") set(temp_src_simgrid "${temp_src_simgrid} ${file}") endif(en_plus) endforeach(file ${simgrid_sources}) @@ -45,25 +45,23 @@ foreach(file ${gras_sources}) endif(file_delete MATCHES "${file}") endforeach (file_delete ${gras_fragile_sources}) if(en_plus) - if(file MATCHES "${PROJECT_DIRECTORY}/src/xbt/log.c") + if(file MATCHES "src/xbt/log.c") set(file "xbt/log.c") - endif(file MATCHES "${PROJECT_DIRECTORY}/src/xbt/log.c") + endif(file MATCHES "src/xbt/log.c") set(temp_src_gras "${temp_src_gras} ${file}") endif(en_plus) endforeach(file ${gras_sources}) -exec_program("${CMAKE_COMMAND} -E remove -f ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${PROJECT_DIRECTORY}/src/supernovae_gras.c ${PROJECT_DIRECTORY}/src/supernovae_smpi.c"OUTPUT_VARIABLE "SUPER_OK") +exec_program("${CMAKE_COMMAND} -E remove -f ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${PROJECT_DIRECTORY}/src/supernovae_gras.c ${PROJECT_DIRECTORY}/src/supernovae_smpi.c" OUTPUT_VARIABLE "SUPER_OK") exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/src/mk_supernovae.sh" OUTPUT_VARIABLE "SUPER_OK") -exec_program("${PROJECT_DIRECTORY}/src/mk_supernovae.sh ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${temp_src_simgrid}" OUTPUT_VARIABLE "SUPER_OK") -exec_program("${PROJECT_DIRECTORY}/src/mk_supernovae.sh ${PROJECT_DIRECTORY}/src/supernovae_gras.c ${temp_src_gras}" OUTPUT_VARIABLE "SUPER_OK") +exec_program("${PROJECT_DIRECTORY}/src/mk_supernovae.sh ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${temp_src_simgrid}" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE "SUPER_OK") +exec_program("${PROJECT_DIRECTORY}/src/mk_supernovae.sh ${PROJECT_DIRECTORY}/src/supernovae_gras.c ${temp_src_gras}" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE "SUPER_OK") if(enable_smpi) - exec_program("${PROJECT_DIRECTORY}/src/mk_supernovae.sh ${PROJECT_DIRECTORY}/src/supernovae_smpi.c ${temp_src_smpi}" OUTPUT_VARIABLE "SUPER_OK") + exec_program("${PROJECT_DIRECTORY}/src/mk_supernovae.sh ${PROJECT_DIRECTORY}/src/supernovae_smpi.c ${temp_src_smpi}" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE "SUPER_OK") endif(enable_smpi) add_library(simgrid SHARED ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${simgrid_fragile_sources}) -add_library(simgrid_static STATIC ${PROJECT_DIRECTORY}/src/supernovae_sg.c ${simgrid_fragile_sources}) add_library(gras SHARED ${PROJECT_DIRECTORY}/src/supernovae_gras.c ${gras_fragile_sources}) if(enable_smpi) add_library(smpi SHARED ${PROJECT_DIRECTORY}/src/supernovae_smpi.c) endif(enable_smpi) -