Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Target "make install" works for java and ruby.
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 25 Feb 2011 12:19:40 +0000 (12:19 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 25 Feb 2011 12:19:40 +0000 (12:19 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/contrib/trunk/simgrid-java@9722 48e7efb5-ca39-0410-a469-dd3cf9ba447f

CMakeLists.txt

index b5e10e3..96435ed 100644 (file)
@@ -155,4 +155,12 @@ java -cp .:${CMAKE_HOME_DIRECTORY}/examples:${CMAKE_HOME_DIRECTORY}/simgrid.jar
 message(STATUS "export LD_LIBRARY_PATH=${CMAKE_HOME_DIRECTORY}/lib:$ENV{LD_LIBRARY_PATH}")
 
 set_tests_properties(java-basic java-pingPong
-PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_HOME_DIRECTORY}/lib:$ENV{LD_LIBRARY_PATH}")
\ No newline at end of file
+PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_HOME_DIRECTORY}/lib:$ENV{LD_LIBRARY_PATH}")
+
+###########
+# Install #
+###########
+install(TARGETS SG_java
+       DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/java/)
+install(FILES ${CMAKE_HOME_DIRECTORY}/simgrid.jar
+       DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/java/)
\ No newline at end of file