Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : update tesh
[simgrid.git] / examples / java / migration / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(example java_migration)
4 set(sources
5   ${CMAKE_CURRENT_SOURCE_DIR}/Emigrant.java
6   ${CMAKE_CURRENT_SOURCE_DIR}/Migration.java
7   ${CMAKE_CURRENT_SOURCE_DIR}/Policeman.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}/migration.tesh
26   PARENT_SCOPE
27   )
28 set(xml_files
29   ${xml_files}
30   ${CMAKE_CURRENT_SOURCE_DIR}/migrationDeployment.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   PARENT_SCOPE
45   )