Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating cmake file #308

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions cmake/addFFTW.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@

option(USE_FFTW OFF)
if(USE_FFTW)

list(APPEND TARGET_COMPILE_DEF "-DUSE_FFTW")
set(FFTW_LIBRARY "$ENV{EASIFEM_EXTPKGS}/lib/libfftw3.a")
target_link_libraries(${PROJECT_NAME} PUBLIC ${FFTW_LIBRARY})
message(STATUS "FFTW_LIBRARY : ${FFTW_LIBRARY}")

find_library(FFTW_LIBRARIES NAMES fftw fftw3 REQUIRED)

target_link_libraries(${PROJECT_NAME} PUBLIC ${FFTW_LIBRARIES})
message(STATUS "FFTW_LIBRARY : ${FFTW_LIBRARIES}")

else()

message(STATUS "NOT USING FFTW LIBRARIES")

endif()
14 changes: 7 additions & 7 deletions cmake/addLIS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@

option(USE_LIS OFF)
if(USE_LIS)

list(APPEND TARGET_COMPILE_DEF "-DUSE_LIS")
if(UNIX)
if(APPLE)
set(LIS_LIBRARIES "$ENV{EASIFEM_EXTPKGS}/lib/liblis.dylib")
else()
set(LIS_LIBRARIES "$ENV{EASIFEM_EXTPKGS}/lib/liblis.so")
endif()
endif()

find_library(LIS_LIBRARIES NAME lis REQUIRED)

target_link_libraries(${PROJECT_NAME} PUBLIC ${LIS_LIBRARIES})
message(STATUS "LIS_LIBRARIES : ${LIS_LIBRARIES}")

else()

message(STATUS "NOT USING LIS LIBRARIES")

endif()
Loading