Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Huge hack for call of smpi_simulated_main.
[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
6   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
7
8   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
9
10 add_executable(MM_mpi MM_mpi.c 2.5D_MM.c Summa.c Matrix_init.c)
11
12 ### Add definitions for compile
13 if(NOT WIN32)
14   target_link_libraries(MM_mpi simgrid pthread m smpi)
15 else()
16   target_link_libraries(MM_mpi simgrid smpi)
17 endif()
18 endif()
19
20 set(tesh_files
21   ${tesh_files}
22   PARENT_SCOPE
23   )
24 set(xml_files
25   ${xml_files}
26   PARENT_SCOPE
27   )
28 set(examples_src
29   ${examples_src}
30   ${CMAKE_CURRENT_SOURCE_DIR}/MM_mpi.c
31   ${CMAKE_CURRENT_SOURCE_DIR}/2.5D_MM.c
32   ${CMAKE_CURRENT_SOURCE_DIR}/Summa.c
33   ${CMAKE_CURRENT_SOURCE_DIR}/Matrix_init.c
34   ${CMAKE_CURRENT_SOURCE_DIR}/2.5D_MM.h
35   ${CMAKE_CURRENT_SOURCE_DIR}/Summa.h
36   ${CMAKE_CURRENT_SOURCE_DIR}/Matrix_init.h
37   PARENT_SCOPE
38   )
39 set(bin_files
40   ${bin_files}
41   PARENT_SCOPE
42   )
43 set(txt_files
44   ${txt_files}
45   PARENT_SCOPE
46   )