Skip to content
Draft
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
27 changes: 26 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ FetchContent_Declare(
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)

if(Apple)
find_package(Intl REQUIRED)
find_package(Iconv REQUIRED)
list(APPEND APBS_LIBS
${Intl_LIBRARIES}
${Iconv_LIBRARIES}
)
set(MORE_INCLUDE_DIRS
${Intl_INCLUDE_DIRS}
${Iconv_INCLUDE_DIRS}
)
if(MORE_INCLUDE_DIRS)
include_directories(${MORE_INCLUDE_DIRS})
endif()
message(STATUS "()()()() Iconv_LIBRARIES: ${Iconv_LIBRARIES}")
endif()

include_directories(
${geoflow_c_SOURCE_DIR}/src
${googletest_SOURCE_DIR}/googlemock/include
Expand All @@ -19,7 +36,15 @@ add_executable(UnitTests test_main.cpp
#surfconcz_test.cpp
)

target_link_libraries(UnitTests gmock_main GeometricFlowLib)
target_link_libraries(UnitTests
gmock_main
GeometricFlowLib
)
if(Apple)
target_link_libraries(UnitTests
"-framework CoreFoundation"
)
endif()

include(GoogleTest)
gtest_discover_tests(UnitTests)