X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f532dbbdeb897da84cee5bfc679e077af4a7613..c12f31e0bf110c61b506ef20c1d4de6b2cd2db87:/buildtools/Cmake/Distrib.cmake diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 6ae9a00a1e..4e314ba5cc 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -75,6 +75,13 @@ if(enable_lib_static AND NOT WIN32) endif() endif() +if(enable_java) + install(TARGETS SG_java + DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/) + install(FILES ${SIMGRID_JAR} + DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/java/) +endif() + # include files set(HEADERS ${headers_to_install} @@ -260,6 +267,7 @@ add_custom_command( add_custom_target(dist COMMENT "Removing the distribution directory" DEPENDS ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-${release_version}.tar.gz + COMMAND ${CMAKE_COMMAND} -E echo ${PROJECT_NAME}-${release_version} > ${CMAKE_BINARY_DIR}/VERSION COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_NAME}-${release_version}/ )