Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to activate coverity for simgrid
[simgrid.git] / examples / scala / masterslave / CMakeLists.txt
1 set(example scala_masterslave)
2 set(sources
3   ${CMAKE_CURRENT_SOURCE_DIR}/FinalizeTask.scala
4   ${CMAKE_CURRENT_SOURCE_DIR}/Forwarder.scala
5   ${CMAKE_CURRENT_SOURCE_DIR}/Master.scala
6   ${CMAKE_CURRENT_SOURCE_DIR}/Masterslave.scala
7   ${CMAKE_CURRENT_SOURCE_DIR}/Slave.scala
8   )
9
10 if(enable_scala)
11   add_custom_command(
12     COMMENT "Building ${example}..."
13     OUTPUT ${example}_compiled
14     DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR}
15     COMMAND ${SCALA_COMPILE} -classpath ${SIMGRID_JAR}
16                              -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources}
17     COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled
18     COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled
19   )
20   add_custom_target(${example} ALL DEPENDS ${example}_compiled)
21 endif()
22
23 set(tesh_files
24   ${tesh_files}
25   ${CMAKE_CURRENT_SOURCE_DIR}/masterslave.tesh
26   PARENT_SCOPE
27   )
28 set(xml_files
29   ${xml_files}
30   ${CMAKE_CURRENT_SOURCE_DIR}/masterslaveDeployment.xml
31   PARENT_SCOPE
32   )
33 set(examples_src
34   ${examples_src}
35   ${sources}
36   PARENT_SCOPE
37   )
38 set(bin_files
39   ${bin_files}
40   PARENT_SCOPE
41   )
42 set(txt_files
43   ${txt_files}
44   ${CMAKE_CURRENT_SOURCE_DIR}/README
45   PARENT_SCOPE
46   )