]> git.treefish.org Git - phys/heatbath.git/blob - CMakeLists.txt
Initializin fields wirh randmom angle.
[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 find_package(MPI REQUIRED)
11 #set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
12 #set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
13 include_directories(${MPI_INCLUDE_PATH})
14
15 SET(CMAKE_BUILD_TYPE Release)
16
17 add_subdirectory(latlib)
18
19 add_executable(heatbath-metro heatbath.cpp)
20 set_target_properties(heatbath-metro PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_METRO")
21 target_link_libraries(heatbath-metro o815 gsl gslcblas lat_neigh)
22
23 add_executable(heatbath-AhbMhb heatbath.cpp)
24 set_target_properties(heatbath-AhbMhb PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AHBMHB")
25 target_link_libraries(heatbath-AhbMhb o815 gsl gslcblas lat_neigh)
26
27 add_executable(heatbath-AhbMor heatbath.cpp)
28 set_target_properties(heatbath-AhbMor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AHBMOR")
29 target_link_libraries(heatbath-AhbMor o815 gsl gslcblas lat_neigh)
30
31 add_executable(heatbath-AorMhb heatbath.cpp)
32 set_target_properties(heatbath-AorMhb PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AORMHB")
33 target_link_libraries(heatbath-AorMhb o815 gsl gslcblas lat_neigh)
34
35 add_executable(heatbath-AorMor heatbath.cpp)
36 set_target_properties(heatbath-AorMor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AORMOR")
37 target_link_libraries(heatbath-AorMor o815 gsl gslcblas lat_neigh)
38
39 add_executable(heatbath-AorM0 heatbath.cpp)
40 set_target_properties(heatbath-AorM0 PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AORM0")
41 target_link_libraries(heatbath-AorM0 o815 gsl gslcblas lat_neigh)
42
43 add_executable(heatbath-AhbM0 heatbath.cpp)
44 set_target_properties(heatbath-AhbM0 PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_AHBM0")
45 target_link_libraries(heatbath-AhbM0 o815 gsl gslcblas lat_neigh)
46
47 add_executable(heatbath-A0Mor heatbath.cpp)
48 set_target_properties(heatbath-A0Mor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_A0MOR")
49 target_link_libraries(heatbath-A0Mor o815 gsl gslcblas lat_neigh)
50
51 add_executable(heatbath-A0Mhb heatbath.cpp)
52 set_target_properties(heatbath-A0Mhb PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_A0MHB")
53 target_link_libraries(heatbath-A0Mhb o815 gsl gslcblas lat_neigh)