Commit c48c5f50 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

cmakelists

parent c5ff3a1b
cmake_minimum_required(VERSION 3.5.1)
project(mpp_mlmc)
project(MLMC)
#---------------------------------------------------------------------------------------#
# Google test (Placed here to not compile it with mpiCC)
......@@ -20,8 +20,8 @@ set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
set(CMAKE_BUILD_TYPE distribution)
set(CMAKE_CXX_FLAGS_DISTRIBUTION "-Ofast")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O0")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-Ofast")
set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O0")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O1")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O2")
set(CMAKE_CXX_FLAGS "-fPIC -g -Wno-deprecated -std=gnu++11")
......@@ -42,9 +42,9 @@ file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/data/dual)
#---------------------------------------------------------------------------------------#
# Include directories
include_directories(${PROJECT_SOURCE_DIR}/mpp_src)
include_directories(${PROJECT_SOURCE_DIR}/mpp_src/LIB_PS)
include_directories(${PROJECT_SOURCE_DIR}/mpp_src/superlu/include)
include_directories(${PROJECT_SOURCE_DIR}/mpp/src)
include_directories(${PROJECT_SOURCE_DIR}/mpp/LIB_PS)
include_directories(${PROJECT_SOURCE_DIR}/mpp/superlu/include)
include_directories(${PROJECT_SOURCE_DIR}/mlmc/src)
include_directories(${PROJECT_SOURCE_DIR}/sprng5/include)
#---------------------------------------------------------------------------------------#
......@@ -57,7 +57,7 @@ add_subdirectory(mlmc/src)
add_executable(MLMC-M++ mlmc/src/MLMCMain.C)
# Linking
target_link_libraries(MLMC-M++ MLMC sprng mpp_src lib_ps blas lapack ${SUPERLU} fftw3 m)
target_link_libraries(MLMC-M++ MLMC sprng mpp lib_ps blas lapack ${SUPERLU} fftw3 m)
#---------------------------------------------------------------------------------------#
# Test Executables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment