Skip to content

Commit

Permalink
Add OpenMP
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Jan 24, 2025
1 parent f06cdac commit 06d6309
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ add_subdirectory(src/field)

find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
find_package(OpenMP REQUIRED)

include(CMakeSources.in)

Expand Down
8 changes: 8 additions & 0 deletions CMakeSources.in
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,12 @@ target_include_directories(vacfield.x PUBLIC ${hdf5_tools_include_dir} ${FFTW_IN
target_include_directories(coil_convert.x PUBLIC ${hdf5_tools_include_dir} ${FFTW_INCLUDE_DIRS})

add_library(LIBNEO::magfie ALIAS magfie)
set_target_properties(magfie PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR}/include
INTERFACE_LINK_LIBRARIES "OpenMP::OpenMP_C;OpenMP::OpenMP_Fortran"
)

add_library(LIBNEO::neo ALIAS neo)
set_target_properties(neo PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR}/include
)

0 comments on commit 06d6309

Please sign in to comment.