Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
e4ea2c248fc6b9babd9fb184e58fa4cae7bf7f83
[simgrid.git] / examples / smpi / MM / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi)
4   set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/bin/smpicc")
5   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
6   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
7
8   if(NOT WIN32)
9     add_executable(MM_mpi MM_mpi.c 2.5D_MM.c Summa.c Matrix_init.c)
10     ### Add definitions for compile
11     target_link_libraries(MM_mpi simgrid pthread m smpi)
12   else()
13     target_link_libraries(MM_mpi simgrid smpi)
14   endif()
15 endif()
16
17 set(tesh_files
18   ${tesh_files}
19   PARENT_SCOPE
20   )
21 set(xml_files
22   ${xml_files}
23   PARENT_SCOPE
24   )
25 set(examples_src
26   ${examples_src}
27   ${CMAKE_CURRENT_SOURCE_DIR}/MM_mpi.c
28   ${CMAKE_CURRENT_SOURCE_DIR}/2.5D_MM.c
29   ${CMAKE_CURRENT_SOURCE_DIR}/Summa.c
30   ${CMAKE_CURRENT_SOURCE_DIR}/Matrix_init.c
31   ${CMAKE_CURRENT_SOURCE_DIR}/2.5D_MM.h
32   ${CMAKE_CURRENT_SOURCE_DIR}/Summa.h
33   ${CMAKE_CURRENT_SOURCE_DIR}/Matrix_init.h
34   PARENT_SCOPE
35   )
36 set(bin_files
37   ${bin_files}
38   PARENT_SCOPE
39   )
40 set(txt_files
41   ${txt_files}
42   PARENT_SCOPE
43   )