Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Previous change made this size smaller, but it resulted in actually another algorithm...
[simgrid.git] / teshsuite / java / sleep_host_off / CMakeLists.txt
1 set(example java_sleep_host_off)
2 set(sources ${CMAKE_CURRENT_SOURCE_DIR}/SleepHostOff.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}
10                              -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources}
11     COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled
12     COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled
13   )
14   add_custom_target(${example} ALL DEPENDS ${example}_compiled)
15 endif()
16
17 set(tesh_files
18   ${tesh_files}
19   ${CMAKE_CURRENT_SOURCE_DIR}/sleep_host_off.tesh
20   PARENT_SCOPE)
21 set(xml_files
22   ${xml_files}
23   ${CMAKE_CURRENT_SOURCE_DIR}/sleep_host_off_d.xml
24   PARENT_SCOPE)
25 set(examples_src
26   ${examples_src}
27   ${sources}
28   PARENT_SCOPE)