diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-06 14:42:44 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-06 14:42:44 -0400 |
commit | 2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d (patch) | |
tree | 3812b4eaa09abf050b96404a615e18e95199966b /CMakeLists.txt | |
parent | 45faadfe2ddd0361d0268f836529c25e11f333b4 (diff) | |
download | c++-2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d.tar.gz c++-2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d.tar.bz2 c++-2d8fcebf2f56efd1c3913ba49eaff6520ffdb33d.zip |
rewrote wolff in c++ with templates so that any system can be run with it
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b46bcd..7c1bc32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,15 +4,15 @@ 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_finite src/wolff_finite.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 src/wolff.cpp ${CPPSOURCES} ${CSOURCES}) find_package(OpenMP) if (OPENMP_FOUND) @@ -21,8 +21,7 @@ if (OPENMP_FOUND) endif() target_link_libraries(wolff_finite 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 gsl m cblas fftw3) -install(TARGETS wolff_finite wolff_vector wolff_dgm DESTINATION bin) +install(TARGETS wolff_finite wolff DESTINATION bin) |