Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
13fdffc667df7256857acad635d22849601a3e72
[simgrid.git] / teshsuite / java / semaphore / CMakeLists.txt
1 set(example java_semaphore_gc)
2 set(sources SemaphoreGC.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}/semaphore_gc.tesh
20   PARENT_SCOPE)
21 set(examples_src
22   ${examples_src}
23   ${sources}
24   PARENT_SCOPE)