X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdb570a7082909f231b95b6539eaf4b7ef0de792..3a42d7a9a23f7eeeb8448083ccd8d3da9a69197c:/buildtools/Cmake/Distrib.cmake diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake old mode 100755 new mode 100644 index f8b9474a76..a725b96ca2 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -35,21 +35,24 @@ install(PROGRAMS tools/MSG_visualization/colorize.pl install(TARGETS simgrid gras DESTINATION $ENV{DESTDIR}${prefix}/lib/) -install(FILES ${CMAKE_BINARY_DIR}/lib/libsimgrid_static.a - RENAME libsimgrid.a - DESTINATION $ENV{DESTDIR}${prefix}/lib/) - if(enable_smpi) install(TARGETS smpi DESTINATION $ENV{DESTDIR}${prefix}/lib/) - install(FILES ${CMAKE_BINARY_DIR}/lib/libsmpi_static.a - RENAME libsmpi.a - DESTINATION $ENV{DESTDIR}${prefix}/lib/) -endif(enable_smpi) +endif(enable_smpi) + +if(enable_lib_static) + install(TARGETS simgrid_static + DESTINATION $ENV{DESTDIR}${prefix}/lib/) + if(enable_smpi) + install(TARGETS smpi_static + DESTINATION $ENV{DESTDIR}${prefix}/lib/) + endif(enable_smpi) +endif(enable_lib_static) # include files foreach(file ${install_HEADERS}) get_filename_component(location ${file} PATH) + string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" location "${location}") install(FILES ${file} DESTINATION $ENV{DESTDIR}${prefix}/${location}) endforeach(file ${install_HEADERS}) @@ -216,6 +219,8 @@ 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} COMMAND ${CMAKE_COMMAND} -E make_directory simgrid-${release_version} + COMMAND ${CMAKE_COMMAND} -E make_directory simgrid-${release_version}/doc/html/ + COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_DIRECTORY}/doc/html/ simgrid-${release_version}/doc/html/ ) set(dirs_in_tarball "") @@ -246,9 +251,13 @@ endforeach(file ${source_to_pack}) ###################################### add_custom_target(dist - COMMAND ${CMAKE_COMMAND} -E tar cf simgrid-${release_version}.tar simgrid-${release_version}/ - COMMAND gzip -9v simgrid-${release_version}.tar - COMMAND ${CMAKE_COMMAND} -E remove_directory simgrid-${release_version} + DEPENDS ${CMAKE_BINARY_DIR}/simgrid-${release_version}.tar.gz +) +add_custom_command( + OUTPUT ${CMAKE_BINARY_DIR}/simgrid-${release_version}.tar.gz + COMMAND ${CMAKE_COMMAND} -E tar cf simgrid-${release_version}.tar simgrid-${release_version}/ + COMMAND gzip -9v simgrid-${release_version}.tar + COMMAND ${CMAKE_COMMAND} -E remove_directory simgrid-${release_version} ) add_dependencies(dist dist-dir)