]> git.treefish.org Git - phys/heatbath.git/blob - CMakeLists.txt
Switched to 2d and added multiple sim-algorithm compilation.
[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_BUILD_TYPE Release)
11
12 add_subdirectory(latlib)
13
14 add_executable(heatbath-heatless heatbath.cpp)
15 set_target_properties(heatbath-heatless PROPERTIES COMPILE_DEFINITIONS "HEATLESS_ALGORITHM")
16 target_link_libraries(heatbath-heatless o815 gsl gslcblas lat_neigh)
17
18 add_executable(heatbath-usualheat heatbath.cpp)
19 set_target_properties(heatbath-usualheat PROPERTIES COMPILE_DEFINITIONS "USUALHEAT_ALGORITHM")
20 target_link_libraries(heatbath-usualheat o815 gsl gslcblas lat_neigh)
21
22 add_executable(heatbath-relaxedheat heatbath.cpp)
23 set_target_properties(heatbath-relaxedheat PROPERTIES COMPILE_DEFINITIONS "RELAXEDHEAT_ALGORITHM")
24 target_link_libraries(heatbath-relaxedheat o815 gsl gslcblas lat_neigh)