1 cmake_minimum_required(VERSION 2.8)
6 # set(CMAKE_CXX_FLAGS -pg)
7 # set(CMAKE_EXE_LINKER_FLAGS -pg)
8 # set(CMAKE_SHARED_LINKER_FLAGS -pg)
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})
15 SET(CMAKE_BUILD_TYPE Release)
17 add_subdirectory(latlib)
19 add_executable(heatbath-nor heatbath.cpp)
20 set_target_properties(heatbath-nor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_NOR")
21 target_link_libraries(heatbath-nor o815 gsl gslcblas lat_neigh)
23 add_executable(heatbath-r heatbath.cpp)
24 set_target_properties(heatbath-r PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_R")
25 target_link_libraries(heatbath-r o815 gsl gslcblas lat_neigh)
27 add_executable(heatbath-1mr heatbath.cpp)
28 set_target_properties(heatbath-1mr PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MR")
29 target_link_libraries(heatbath-1mr o815 gsl gslcblas lat_neigh)
31 add_executable(heatbath-1mr+ heatbath.cpp)
32 set_target_properties(heatbath-1mr+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRPLUS")
33 target_link_libraries(heatbath-1mr+ o815 gsl gslcblas lat_neigh)
35 add_executable(heatbath-1mr- heatbath.cpp)
36 set_target_properties(heatbath-1mr- PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRMINUS")
37 target_link_libraries(heatbath-1mr- o815 gsl gslcblas lat_neigh)
39 add_executable(heatbath-r- heatbath.cpp)
40 set_target_properties(heatbath-r- PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_RMINUS")
41 target_link_libraries(heatbath-r- o815 gsl gslcblas lat_neigh)
43 add_executable(heatbath-r+ heatbath.cpp)
44 set_target_properties(heatbath-r+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_RPLUS")
45 target_link_libraries(heatbath-r+ o815 gsl gslcblas lat_neigh)