diff options
Diffstat (limited to 'geom_matching/wasserstein/mpi/CMakeLists.txt')
-rw-r--r-- | geom_matching/wasserstein/mpi/CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/geom_matching/wasserstein/mpi/CMakeLists.txt b/geom_matching/wasserstein/mpi/CMakeLists.txt new file mode 100644 index 0000000..10a77bf --- /dev/null +++ b/geom_matching/wasserstein/mpi/CMakeLists.txt @@ -0,0 +1,36 @@ +cmake_minimum_required(VERSION 2.8.8) + +project(hera_mpi) + +option(SILENCE "Turn off some warnings." OFF) + +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + add_definitions(-DDEBUG) + remove_definitions(-DNDEBUG) +endif() + +if(SILENCE) + message(WARNING "Silence flag currently ignored.") + add_definitions(-DSILENCE) +endif(SILENCE) + +include(TestBigEndian) +test_big_endian(BIG_ENDIAN) +if(BIG_ENDIAN) + add_definitions(-DBIGENDIAN) +endif() + +find_package(MPI REQUIRED) +include_directories(${MPI_INCLUDE_PATH}) +link_directories(${MPI_LIBRARIES}) + +#find_package(Boost REQUIRED) # Should set version and specific components. +#include_directories(${Boost_INCLUDE_DIRS}) + +include_directories("../include") + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MPI_COMPILE_FLAGS} -Wall -pedantic -Wextra -std=c++14") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_LINK_FLAGS}") + +add_executable(hera_mpi main.cpp) +target_link_libraries(hera_mpi ${MPI_LIBRARIES}) |