Greg replied to the topic 'Trouble Linking Libraries' in the forum. 5 years ago

Fixed the issue. For the client to work correctly, these must be included in the CMakeLists.txt file

find_package(INDI 1.7 REQUIRED)
find_package(INDI COMPONENTS client REQUIRED)
find_package(Nova REQUIRED)
find_package(CFITSIO REQUIRED)
find_package(Threads REQUIRED)
find_package(ZLIB REQUIRED)

include_directories(${INDI_INCLUDE_DIR})
include_directories(${NOVA_INCLUDE_DIR})
include_directories(${CFITSIO_INCLUDE_DIR})
include_directories( ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${ZLIB_INCLUDE_DIR})

target_link_libraries(pandaScope ${NOVA_LIBRARIES})
target_link_libraries(pandaScope ${CFITSIO_LIBRARIES})
target_link_libraries(pandaScope ${INDI_LIBRARIES})
target_link_libraries(pandaScope ${INDI_CLIENT_LIBRARIES})
target_link_libraries(pandaScope ${CMAKE_THREAD_LIBS_INIT})
target_link_libraries(pandaScope ${ZLIB_LIBRARIES})

Thanks for all your help Jasem!

Read More...