Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update CMakeLists.txt for java_bittorrent.
[simgrid.git] / examples / java / bittorrent / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(sources
4   ${CMAKE_CURRENT_SOURCE_DIR}/Bittorrent.java
5   ${CMAKE_CURRENT_SOURCE_DIR}/Common.java
6   ${CMAKE_CURRENT_SOURCE_DIR}/Connection.java
7   ${CMAKE_CURRENT_SOURCE_DIR}/MessageTask.java
8   ${CMAKE_CURRENT_SOURCE_DIR}/Peer.java
9   ${CMAKE_CURRENT_SOURCE_DIR}/Tracker.java
10   ${CMAKE_CURRENT_SOURCE_DIR}/TrackerTask.java
11   )
12
13 if(enable_java)
14   add_custom_target(java_bittorrent ALL
15     COMMAND ${JAVA_COMPILE} -cp ${CMAKE_BINARY_DIR}/simgrid.jar
16                             -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources})
17   add_dependencies(java_bittorrent SG_java_jar)
18 endif()
19
20 set(tesh_files
21   ${tesh_files}
22   examples/bittorrent/bittorrent.tesh
23   PARENT_SCOPE
24   )
25 set(xml_files
26   ${xml_files}
27   ${CMAKE_CURRENT_SOURCE_DIR}/bittorrent.xml
28   PARENT_SCOPE
29   )
30 set(examples_src
31   ${examples_src}
32   ${sources}
33   PARENT_SCOPE
34   )
35 set(bin_files
36   ${bin_files}
37   PARENT_SCOPE
38   )
39 set(txt_files
40   ${txt_files}
41   ${CMAKE_CURRENT_SOURCE_DIR}/generate.py
42   PARENT_SCOPE
43   )
44