summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-10 12:37:02 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-10 12:37:02 -0400
commite53a4c09eb78e4c5a8365f1328a69ba7f9ff8992 (patch)
tree3c252af9ffafacab8392bf864270dcd034ed07ed /CMakeLists.txt
parent609fb52b670d8ed74584a988b8c63da82d8d523b (diff)
parent1810103bc9ac4c9a8d432d113f5ca6eae6560fb4 (diff)
downloadc++-e53a4c09eb78e4c5a8365f1328a69ba7f9ff8992.tar.gz
c++-e53a4c09eb78e4c5a8365f1328a69ba7f9ff8992.tar.bz2
c++-e53a4c09eb78e4c5a8365f1328a69ba7f9ff8992.zip
Merge branch 'master' of m5:/srv/git/wolff
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ef18d5..ffbde47 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,15 +4,16 @@ project(wolff)
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
-set (CMAKE_CXX_STANDARD 11)
+set (CMAKE_CXX_STANDARD 17)
include_directories(lib ~/.local/include)
link_directories(~/.local/lib)
-file(GLOB SOURCES lib/*.c)
-add_executable(wolff_potts src/wolff_potts.c ${SOURCES})
-add_executable(wolff_vector src/wolff_vector.c ${SOURCES})
-add_executable(wolff_dgm src/wolff_dgm.c ${SOURCES})
+file(GLOB CSOURCES lib/*.c)
+file(GLOB CPPSOURCES lib/*.cpp)
+add_executable(wolff_finite src/wolff_finite.c ${CSOURCES})
+add_executable(wolff_heisenberg src/wolff_heisenberg.cpp ${CPPSOURCES} ${CSOURCES})
+add_executable(wolff_planar src/wolff_planar.cpp ${CPPSOURCES} ${CSOURCES})
find_package(OpenMP)
if (OPENMP_FOUND)
@@ -20,9 +21,9 @@ if (OPENMP_FOUND)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
-target_link_libraries(wolff_potts gsl m cblas fftw3)
-target_link_libraries(wolff_vector gsl m cblas fftw3)
-target_link_libraries(wolff_dgm gsl m cblas fftw3)
+target_link_libraries(wolff_finite gsl m cblas fftw3)
+target_link_libraries(wolff_heisenberg gsl m cblas fftw3)
+target_link_libraries(wolff_planar gsl m cblas fftw3)
-install(TARGETS wolff_potts wolff_vector wolff_dgm DESTINATION bin)
+install(TARGETS wolff_finite wolff_heisenberg wolff_planar DESTINATION bin)