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

renamed project

parent 25a0033e
cmake_minimum_required(VERSION 3.5.1)
project(MLMC)
project(MLUQ)
set(SPACE_DIM 2 CACHE STRING "SPACE_DIM")
set(USE_FFTW ON CACHE STRING "USE_FFTW")
......@@ -10,7 +10,7 @@ set(COMPILER_OPTIMIZE -O3 CACHE STRING "COMPILER_OPTIMIZE")
set(NO_DEPRECATED OFF CACHE STRING "NO_DEPRECATED")
set(AFFINE_LINEAR_TRAFO ON CACHE STRING "AFFINE_LINEAR_TRAFO")
set(BUILD_TESTS OFF CACHE STRING "BUILD_TESTS")
set(BUILD_MLMC_TESTS ON CACHE STRING "BUILD_MLMC_TESTS")
set(BUILD_MLUQ_TESTS ON CACHE STRING "BUILD_MLUQ_TESTS")
#---------------------------------------------------------------------------------------#
set(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR})
......@@ -27,8 +27,6 @@ include_directories(${PROJECT_SOURCE_DIR}/TASMANIAN/SparseGrids)
include_directories(${PROJECT_SOURCE_DIR}/TASMANIAN/SparseGrids/Benchmarks)
include_directories(${PROJECT_SOURCE_DIR}/TASMANIAN/DREAM)
# include M++
include(mpp/CMakeLists.txt)
......@@ -45,18 +43,18 @@ link_directories(${PROJECT_SOURCE_DIR}/sprng5/lib)
include_directories(${PROJECT_SOURCE_DIR}/sprng5/include)
# Subdirectories
add_mpp_subdirectory(${PROJECT_SOURCE_DIR}/mlmc/src/)
add_mpp_subdirectory(${PROJECT_SOURCE_DIR}/mluq/src/)
# Executables
add_executable(MLMC-M++ mlmc/src/Main.cpp)
add_executable(MLUQ-M++ mluq/src/Main.cpp)
# Linking
target_link_libraries(MLMC-M++ MONTECARLO)
target_link_libraries(MLUQ-M++ MONTECARLO)
# Tests
if (BUILD_MLMC_TESTS)
include_directories(mlmc/tests/)
add_subdirectory(mlmc/tests/)
if (BUILD_MLUQ_TESTS)
include_directories(mluq/tests/)
add_subdirectory(mluq/tests/)
endif ()
......
Supports Markdown
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