Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
f42a738575755bfcf4211fe96f335244ff1c980b
[simgrid.git] / examples / java / cloud / CMakeLists.txt
1 set(example java_cloud)
2 set(sources Cloud.java FinalizeTask.java Master.java Slave.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}/cloud.tesh
20   PARENT_SCOPE)
21 set(xml_files
22   ${xml_files}
23   PARENT_SCOPE)
24 set(examples_src
25   ${examples_src}
26   ${sources}
27   PARENT_SCOPE)