forked from milianw/bachelor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
41 lines (28 loc) · 1008 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 2.8)
project(MilianWolffBachelor)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(OptimizeForArchitecture)
find_package(GSL REQUIRED)
find_package(FFTW REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
find_package(Qt4 REQUIRED)
include_directories(${QT_INCLUDE_DIR})
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.42.0 COMPONENTS mpi serialization program_options regex system filesystem REQUIRED )
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${Boost_INCLUDE_DIRS} /usr/include/openmpi)
set(CMAKE_CXX_FLAGS "-Wall")
add_subdirectory(spinlib)
add_subdirectory(mpi)
add_subdirectory(non-mpi)
add_subdirectory(convolute)
add_subdirectory(dbg)
add_subdirectory(powder)
add_subdirectory(lebedev)
# add_executable(test test.cpp)
# OptimizeForArchitecture(test)
# target_link_libraries(test hslib ${Boost_LIBRARIES})