diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-07 17:40:22 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-07 17:40:22 (GMT) |
commit | 8f32a616b110b9f9510c289aef8c6e5d8e47b5f3 (patch) | |
tree | 813c349a8afebb76bfaf419ea27295c4a1cf6e39 /CMakeLists.txt | |
parent | 66c23a4d447ad6c7a1c04b76a3e302e25614e9a3 (diff) |
Additional example using a very light md implementation using openmp. Data is saved during simulation.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c459d69..c36dcb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,15 @@ project(TRAJECTORY) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) +option(USE_OPENMP "Try to use the OpenMP library (if available)" ON) +if(USE_OPENMP) + FIND_PACKAGE(OpenMP) + if(OPENMP_FOUND) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") + endif() +endif() + add_subdirectory(src) file(COPY example_files DESTINATION .) |