Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not declare empty sets
[simgrid.git] / teshsuite / java / semaphore / CMakeLists.txt
1 set(example java_semaphore_gc)
2 set(sources
3   ${CMAKE_CURRENT_SOURCE_DIR}/SemaphoreGC.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}/semaphore_gc.tesh
22   PARENT_SCOPE)
23 set(examples_src
24   ${examples_src}
25   ${sources}
26   PARENT_SCOPE)