X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81c3c0394f8a6fa6ef9fbad74529ce5a82081c2a..8199067e1f2a6ea4d3d8a38df1a4fb3f25d364da:/examples/java/io/CMakeLists.txt diff --git a/examples/java/io/CMakeLists.txt b/examples/java/io/CMakeLists.txt index 1d1e5ab1de..e88f7f64d8 100644 --- a/examples/java/io/CMakeLists.txt +++ b/examples/java/io/CMakeLists.txt @@ -4,15 +4,18 @@ set(example java_io) set(sources ${CMAKE_CURRENT_SOURCE_DIR}/IO.java ${CMAKE_CURRENT_SOURCE_DIR}/Node.java + ${CMAKE_CURRENT_SOURCE_DIR}/Storage.java + ${CMAKE_CURRENT_SOURCE_DIR}/Client.java ) if(enable_java) add_custom_command( COMMENT "Building ${example}..." OUTPUT ${example}_compiled - DEPENDS ${sources} ${SIMGRID_JAR} - COMMAND ${JAVA_COMPILE} -cp ${SIMGRID_JAR} + DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR} + COMMAND ${JAVA_COMPILE} -classpath ${SIMGRID_JAR} -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources} + COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled ) add_custom_target(${example} ALL DEPENDS ${example}_compiled)