]> git.treefish.org Git - phys/heatbath.git/blobdiff - CMakeLists.txt
Added mpi to include path.
[phys/heatbath.git] / CMakeLists.txt
index 41c8e074f076cfadb6a35c06ba36212620e72ec8..44664171a41a46d92abdb39df2c4e11ff3af6988 100644 (file)
@@ -7,6 +7,11 @@ project(heatbath)
 # set(CMAKE_EXE_LINKER_FLAGS -pg)
 # set(CMAKE_SHARED_LINKER_FLAGS -pg)
 
+find_package(MPI REQUIRED)
+#set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
+#set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
+include_directories(${MPI_INCLUDE_PATH})
+
 SET(CMAKE_BUILD_TYPE Release)
 
 add_subdirectory(latlib)
@@ -26,3 +31,15 @@ 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)
+
+add_executable(heatbath-r+ heatbath.cpp)
+set_target_properties(heatbath-r+ PROPERTIES COMPILE_DEFINITIONS "ALGORITHM_RPLUS")
+target_link_libraries(heatbath-r+ o815 gsl gslcblas lat_neigh)