Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill a redudant example
[simgrid.git] / examples / java / startKillTime / CMakeLists.txt
1 set(example java_startKillTime)
2 set(sources ${CMAKE_CURRENT_SOURCE_DIR}/Master.java ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java ${CMAKE_CURRENT_SOURCE_DIR}/StartKillTime.java)
3
4 if(enable_java)
5   add_custom_command(
6     COMMENT "Building ${example}..."
7     OUTPUT ${example}_compiled
8     DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR}
9     COMMAND ${JAVA_COMPILE} -classpath ${SIMGRID_JAR} -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources}
10     COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled
11     COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled
12   )
13   add_custom_target(${example} ALL DEPENDS ${example}_compiled)
14   ADD_TESH(java-startKillTime --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/java --setenv classpath=${TESH_CLASSPATH} --cd ${CMAKE_BINARY_DIR}/examples/java ${CMAKE_HOME_DIRECTORY}/examples/java/startKillTime/startKillTime.tesh)
15 endif()
16
17 set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/startKillTime.tesh         PARENT_SCOPE)
18 set(xml_files     ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/deployment_start_kill.xml  PARENT_SCOPE)
19 set(examples_src  ${examples_src}  ${sources}                                             PARENT_SCOPE)