Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
5f3db60c12cffb453728304645184fcde4473191
[simgrid.git] / teshsuite / java / sleep_host_off / CMakeLists.txt
1 set(example java_sleep_host_off)
2 set(sources
3   ${CMAKE_CURRENT_SOURCE_DIR}/SleepHostOff.java
4   )
5
6 if(enable_java)
7   add_custom_command(
8     COMMENT "Building ${example}..."
9     OUTPUT ${example}_compiled
10     DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR}
11     COMMAND ${JAVA_COMPILE} -classpath ${SIMGRID_JAR}
12                              -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources}
13     COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled
14     COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled
15   )
16   add_custom_target(${example} ALL DEPENDS ${example}_compiled)
17 endif()
18
19 set(tesh_files
20   ${tesh_files}
21   ${CMAKE_CURRENT_SOURCE_DIR}/sleep_host_off.tesh
22   PARENT_SCOPE)
23 set(xml_files
24   ${xml_files}
25   ${CMAKE_CURRENT_SOURCE_DIR}/sleep_host_off_d.xml
26   PARENT_SCOPE)
27 set(examples_src
28   ${examples_src}
29   ${sources}
30   PARENT_SCOPE)