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 SET(CMAKE_BUILD_TYPE Release)
12 add_subdirectory(latlib)
14 add_executable(heatbath-nor heatbath.cpp)
15 set_target_properties(heatbath-nor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_NOR")
16 target_link_libraries(heatbath-nor o815 gsl gslcblas lat_neigh)
18 add_executable(heatbath-r heatbath.cpp)
19 set_target_properties(heatbath-r PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_R")
20 target_link_libraries(heatbath-r o815 gsl gslcblas lat_neigh)
22 add_executable(heatbath-1mr heatbath.cpp)
23 set_target_properties(heatbath-1mr PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MR")
24 target_link_libraries(heatbath-1mr o815 gsl gslcblas lat_neigh)
26 add_executable(heatbath-1mr+ heatbath.cpp)
27 set_target_properties(heatbath-1mr+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRPLUS")
28 target_link_libraries(heatbath-1mr+ o815 gsl gslcblas lat_neigh)