Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
0a9716ac343b67e4989737d37c318b3365d72699
[simgrid.git] / examples / java / startKillTime / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(example java_startKillTime)
4 set(sources
5   ${CMAKE_CURRENT_SOURCE_DIR}/Master.java
6   ${CMAKE_CURRENT_SOURCE_DIR}/Slave.java
7   ${CMAKE_CURRENT_SOURCE_DIR}/StartKillTime.java
8   )
9
10 if(enable_java)
11   add_custom_command(
12     COMMENT "Building ${example}..."
13     OUTPUT ${example}_compiled
14     DEPENDS ${sources} SG_java_jar ${SIMGRID_JAR}
15     COMMAND ${JAVA_COMPILE} -cp ${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}/startKillTime.tesh
26   PARENT_SCOPE
27   )
28 set(xml_files
29   ${xml_files}
30   ${CMAKE_CURRENT_SOURCE_DIR}/deployment.xml
31   ${CMAKE_CURRENT_SOURCE_DIR}/deployment_kill.xml
32   ${CMAKE_CURRENT_SOURCE_DIR}/deployment_start.xml
33   ${CMAKE_CURRENT_SOURCE_DIR}/deployment_start_kill.xml
34   PARENT_SCOPE
35   )
36 set(examples_src
37   ${examples_src}
38   ${sources}
39   PARENT_SCOPE
40   )
41 set(bin_files
42   ${bin_files}
43   PARENT_SCOPE
44   )
45 set(txt_files
46   ${txt_files}
47   PARENT_SCOPE
48   )