Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix linking of storage example on Windows.
[simgrid.git] / examples / msg / io / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
4
5 add_executable(file file.c)
6 add_executable(file_unlink file_unlink.c)
7 add_executable(storage storage.c)
8 add_executable(remote remote.c)
9
10 ### Add definitions for compile
11 if(NOT WIN32)
12   target_link_libraries(file simgrid pthread)
13   target_link_libraries(file_unlink simgrid pthread)
14   target_link_libraries(remote simgrid pthread)
15   target_link_libraries(storage simgrid pthread)
16 else()
17   target_link_libraries(file simgrid)
18   target_link_libraries(file_unlink simgrid)
19   target_link_libraries(remote simgrid)
20   target_link_libraries(storage simgrid)
21 endif()
22
23 set(tesh_files
24   ${tesh_files}
25   ${CMAKE_CURRENT_SOURCE_DIR}/io.tesh
26   ${CMAKE_CURRENT_SOURCE_DIR}/storage.tesh
27   ${CMAKE_CURRENT_SOURCE_DIR}/remote.tesh
28   PARENT_SCOPE
29   )
30 set(xml_files
31   ${xml_files}
32   PARENT_SCOPE
33   )
34 set(examples_src
35   ${examples_src}
36   ${CMAKE_CURRENT_SOURCE_DIR}/file.c
37   ${CMAKE_CURRENT_SOURCE_DIR}/file_unlink.c
38   ${CMAKE_CURRENT_SOURCE_DIR}/storage.c
39   ${CMAKE_CURRENT_SOURCE_DIR}/remote.c
40   PARENT_SCOPE
41   )
42 set(bin_files
43   ${bin_files}
44   PARENT_SCOPE
45   )
46 set(txt_files
47   ${txt_files}
48   PARENT_SCOPE
49   )