examples/msg/tracing/procmig
examples/msg/tracing/tasks
examples/msg/tracing/volume
+examples/msg/mc/bugged3
+examples/msg/mc/random_test
+examples/simdag/ex_sd_seq_access
+examples/simdag/sd_seq_access
src/simgrid_units_main.c
*_unit.c
src/gras_config.h
src/smpi/smpicc
src/smpi/smpirun
+src/bindings/lua/libsimgrid.so
src/testall
src/ucontext_stack.h
teshsuite/datadesc_usage.out
examples/msg/tracing/categories
examples/msg/tracing/ms
-
+.cproject
+.project
"examples/*.java"
)
-file(GLOB_RECURSE ex_to_svg
+file(GLOB_RECURSE examples_to_install_in_doc
"examples/*.c"
"examples/*.h"
"examples/*.cxx"
"examples/*.java"
"examples/*.xml"
)
-string(REPLACE "" "" ex_to_svg "${ex_to_svg}")
-foreach(file ${ex_to_svg})
+string(REPLACE "" "" examples_to_install_in_doc "${examples_to_install_in_doc}")
+foreach(file ${examples_to_install_in_doc})
string(REGEX REPLACE "/[^/]*$" "" file "${file}")
- set(new_ex_to_svg "${new_ex_to_svg}${file};")
-endforeach(file ${ex_to_svg})
+ set(new_examples_to_install_in_doc "${new_examples_to_install_in_doc}${file};")
+endforeach(file ${examples_to_install_in_doc})
set(directory_to_create "")
-foreach(file ${new_ex_to_svg})
+foreach(file ${new_examples_to_install_in_doc})
string(REGEX MATCH "${file};" OPERATION "${directory_to_create}")
if(NOT OPERATION)
set(directory_to_create "${directory_to_create}${file};")
endif(NOT OPERATION)
-endforeach(file ${new_ex_to_svg})
+endforeach(file ${new_examples_to_install_in_doc})
file(GLOB_RECURSE include_files
# This is the complete lise of what will be added to the source archive
-set(to_svg
+set(source_to_pack
${XBT_RL_SRC}
${EXTRA_DIST}
${SMPI_SRC}
buildtools/Cmake/prog_test/prog_vsnprintf.c
# FIXME: these are badly named and placed
buildtools/Cmake/src/c_gras_config.h.in
- buildtools/Cmake/src/tmp_gras_config.h.in
buildtools/Cmake/src/tracing_config.h.in
- buildtools/Cmake/src/tmp_tracing_config.h.in
-
AUTHORS
ChangeLog
-set(CMAKE_PROJECT_NAME "${PROJECT_NAME}")
-set(CPACK_PACKAGE_NAME "${PROJECT_NAME}")
-set(CPACK_PROJECT_NAME "${PROJECT_NAME}")
-
-set(CPACK_PACKAGE_FILE_NAME "simgrid-${release_version}")
-set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 1)
-set(CPACK_GENERATOR "") #;TGZ;TZ;ZIP
-
-set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-src")
-set(CPACK_SOURCE_GENERATOR "TGZ")
-set(CPACK_SOURCE_FILES "${to_svg}")
-
-set(CPACK_SET_DESTDIR on)
set(CMAKE_INSTALL_PREFIX ${prefix} CACHE TYPE INTERNAL FORCE)
#########################################
endforeach(file ${install_HEADERS})
# example files
-foreach(file ${ex_to_svg})
+foreach(file ${examples_to_install_in_doc})
string(REPLACE "${PROJECT_DIRECTORY}/examples/" "" file ${file})
get_filename_component(location ${file} PATH)
install(FILES "examples/${file}"
DESTINATION $ENV{DESTDIR}${prefix}/doc/simgrid/examples/${location})
-endforeach(file ${ex_to_svg})
+endforeach(file ${examples_to_install_in_doc})
# bindings cruft
if(HAVE_JAVA)
## containing only the files that I explicitely state ###
## (instead of any cruft laying on my disk as CPack does) ###
################################################################
+
+##########################################
+### Fill in the "make dist-dir" target ###
+##########################################
+
add_custom_target(dist-dir
COMMAND test -e simgrid-${release_version}/ && chmod -R a+w simgrid-${release_version}/ || true
COMMAND ${CMAKE_COMMAND} -E remove_directory simgrid-${release_version}
)
set(dirs_in_tarball "")
-foreach(file ${to_svg} ${txt_files})
+foreach(file ${source_to_pack} ${txt_files})
# This damn prefix is still set somewhere (seems to be in subdirs)
string(REPLACE "${PROJECT_DIRECTORY}/" "" file ${file})
TARGET dist-dir
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_DIRECTORY}/${file} simgrid-${release_version}/${file_location}/
)
-endforeach(file ${to_svg})
+endforeach(file ${source_to_pack})
+
+######################################
+### Fill in the "make dist" target ###
+######################################
add_custom_target(dist
COMMAND ${CMAKE_COMMAND} -E tar cf simgrid-${release_version}.tar simgrid-${release_version}/
)
add_dependencies(dist dist-dir)
+###########################################
+### Fill in the "make distcheck" target ###
+###########################################
+
# Allow to test the "make dist"
add_custom_target(distcheck
COMMAND ${CMAKE_COMMAND} -E make_directory simgrid-${release_version}/_build