Unverified Commit 5386c0a7 authored by Kristin's avatar Kristin Committed by GitHub
Browse files

Cmake update to link mission libraries with gtest executable (#3694)

* Update meta.yaml to rename conda package to isis from isis3

* Update gtests to link against all the non-isis3 shared libraries built by ISIS

* Update to work on macs
parent 8f638460
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.10)
add_dependencies(isis3 isis3)

file(GLOB test_source "${CMAKE_SOURCE_DIR}/tests/*.cpp")

file(GLOB isis_libs "${CMAKE_BINARY_DIR}/lib/lib*")

# Link runISISTests with what we want to test and the GTest and pthread library
add_executable(runISISTests
               IsisTestMain.cpp
               ${test_source})

target_link_libraries(runISISTests isis3 ${ALLLIBS} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} Threads::Threads)
target_link_libraries(runISISTests isis3 ${isis_libs} ${ALLLIBS} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} Threads::Threads)

gtest_discover_tests(runISISTests WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)