Skip to content

Commit

Permalink
Fix to CMakeLists - added gsl.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejpaul committed Nov 1, 2024
1 parent 4b16c3c commit e422b65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ else()
message(STATUS "Boost include dirs are ${Boost_INCLUDE_DIRS}")
endif()

find_package(GSL)
if(GSL_FOUND)
message(STATUS "GSL version is ${GSL_VERSION}")
message(STATUS "GSL include dirs are ${GSL_INCLUDE_DIR}")
endif()

# add_subdirectory(thirdparty/pybind11)
add_subdirectory(thirdparty/fmt EXCLUDE_FROM_ALL)
set(XTENSOR_USE_OPENMP 0)
Expand Down Expand Up @@ -147,6 +153,9 @@ if(OpenMP_CXX_FOUND)
target_link_libraries(${PROJECT_NAME} PRIVATE OpenMP::OpenMP_CXX)
endif()

target_include_directories(${PROJECT_NAME} PRIVATE ${GSL_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} PRIVATE ${GSL_LIBRARIES})

add_executable(profiling EXCLUDE_FROM_ALL src/profiling/profiling.cpp src/simsoptpp/biot_savart_c.cpp src/simsoptpp/biot_savart_vjp_c.cpp src/simsoptpp/regular_grid_interpolant_3d_c.cpp)
set_target_properties(profiling
PROPERTIES
Expand Down

0 comments on commit e422b65

Please sign in to comment.