1 cmake_minimum_required(VERSION 2.8)
5 find_package(MPI REQUIRED)
6 set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
7 set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
8 include_directories(${MPI_INCLUDE_PATH} ../)
10 SET(CMAKE_BUILD_TYPE Release)
12 add_library(o815 o815.cpp obs.cpp)
13 target_link_libraries(o815 ${MPI_LIBRARIES} lat_paraq lat_writeout)