]> git.treefish.org Git - phys/heatbath.git/blob - CMakeLists.txt
Included cmake FindGSL script.
[phys/heatbath.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2
3 project(heatbath)
4
5 # #PROFILING
6 # set(CMAKE_CXX_FLAGS -pg)
7 # set(CMAKE_EXE_LINKER_FLAGS -pg)
8 # set(CMAKE_SHARED_LINKER_FLAGS -pg)
9
10 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "./")
11
12 FIND_PACKAGE(GSL REQUIRED)
13 include_directories(${GSL_INCLUDE_DIRS})
14
15 find_package(MPI REQUIRED)
16 #set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
17 #set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
18 include_directories(${MPI_INCLUDE_PATH})
19
20 SET(CMAKE_BUILD_TYPE Release)
21
22 add_subdirectory(latlib)
23
24 add_executable(heatbath-metro heatbath.cpp)
25 set_target_properties(heatbath-metro PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_METRO")
26 target_link_libraries(heatbath-metro o815 ${GSL_LIBRARIES} lat_neigh)
27
28 add_executable(heatbath-AhbMhb heatbath.cpp)
29 set_target_properties(heatbath-AhbMhb PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AHBMHB")
30 target_link_libraries(heatbath-AhbMhb o815 ${GSL_LIBRARIES} lat_neigh)
31
32 add_executable(heatbath-AhbMor heatbath.cpp)
33 set_target_properties(heatbath-AhbMor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AHBMOR")
34 target_link_libraries(heatbath-AhbMor o815 ${GSL_LIBRARIES} lat_neigh)
35
36 add_executable(heatbath-AorMhb heatbath.cpp)
37 set_target_properties(heatbath-AorMhb PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AORMHB")
38 target_link_libraries(heatbath-AorMhb o815 ${GSL_LIBRARIES} lat_neigh)
39
40 add_executable(heatbath-AorMor heatbath.cpp)
41 set_target_properties(heatbath-AorMor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AORMOR")
42 target_link_libraries(heatbath-AorMor o815 ${GSL_LIBRARIES} lat_neigh)
43
44 add_executable(heatbath-AorM0 heatbath.cpp)
45 set_target_properties(heatbath-AorM0 PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AORM0")
46 target_link_libraries(heatbath-AorM0 o815 ${GSL_LIBRARIES} lat_neigh)
47
48 add_executable(heatbath-AhbM0 heatbath.cpp)
49 set_target_properties(heatbath-AhbM0 PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AHBM0")
50 target_link_libraries(heatbath-AhbM0 o815 ${GSL_LIBRARIES} lat_neigh)
51
52 add_executable(heatbath-A0Mor heatbath.cpp)
53 set_target_properties(heatbath-A0Mor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_A0MOR")
54 target_link_libraries(heatbath-A0Mor o815 ${GSL_LIBRARIES} lat_neigh)
55
56 add_executable(heatbath-A0Mhb heatbath.cpp)
57 set_target_properties(heatbath-A0Mhb PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_A0MHB")
58 target_link_libraries(heatbath-A0Mhb o815 ${GSL_LIBRARIES} lat_neigh)