Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't build smpi in a separate library anymore.
[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}/smpi_script/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)
12   endif()
13 endif()
14
15 set(tesh_files
16   ${tesh_files}
17   PARENT_SCOPE
18   )
19 set(xml_files
20   ${xml_files}
21   PARENT_SCOPE
22   )
23 set(examples_src
24   ${examples_src}
25   ${CMAKE_CURRENT_SOURCE_DIR}/MM_mpi.c
26   ${CMAKE_CURRENT_SOURCE_DIR}/2.5D_MM.c
27   ${CMAKE_CURRENT_SOURCE_DIR}/Summa.c
28   ${CMAKE_CURRENT_SOURCE_DIR}/Matrix_init.c
29   ${CMAKE_CURRENT_SOURCE_DIR}/2.5D_MM.h
30   ${CMAKE_CURRENT_SOURCE_DIR}/Summa.h
31   ${CMAKE_CURRENT_SOURCE_DIR}/Matrix_init.h
32   PARENT_SCOPE
33   )
34 set(bin_files
35   ${bin_files}
36   PARENT_SCOPE
37   )
38 set(txt_files
39   ${txt_files}
40   PARENT_SCOPE
41   )