cmake_minimum_required(VERSION 2.8) project(heatbath) # #PROFILING # set(CMAKE_CXX_FLAGS -pg) # set(CMAKE_EXE_LINKER_FLAGS -pg) # set(CMAKE_SHARED_LINKER_FLAGS -pg) SET(CMAKE_BUILD_TYPE Release) add_subdirectory(latlib) add_executable(heatbath-nor heatbath.cpp) set_target_properties(heatbath-nor PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_NOR") target_link_libraries(heatbath-nor o815 gsl gslcblas lat_neigh) add_executable(heatbath-r heatbath.cpp) set_target_properties(heatbath-r PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_R") target_link_libraries(heatbath-r o815 gsl gslcblas lat_neigh) add_executable(heatbath-1mr heatbath.cpp) set_target_properties(heatbath-1mr PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MR") target_link_libraries(heatbath-1mr o815 gsl gslcblas lat_neigh) add_executable(heatbath-1mr+ heatbath.cpp) set_target_properties(heatbath-1mr+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRPLUS") target_link_libraries(heatbath-1mr+ o815 gsl gslcblas lat_neigh) add_executable(heatbath-1mr- heatbath.cpp) set_target_properties(heatbath-1mr- PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_1MRMINUS") target_link_libraries(heatbath-1mr- o815 gsl gslcblas lat_neigh) add_executable(heatbath-r- heatbath.cpp) set_target_properties(heatbath-r- PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_RMINUS") target_link_libraries(heatbath-r- o815 gsl gslcblas lat_neigh)