Commit 3c8c5a57 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Properly separate public/private dependencies

This avoids leaking the Eigen dependency to consumers
parent 3f146244
Pipeline #167590 passed with stage
in 3 minutes and 42 seconds
......@@ -52,14 +52,14 @@ set(analitza_SRCS
ecm_create_qm_loader(analitza_SRCS analitza_qt)
add_library(Analitza ${analitza_SRCS})
target_link_libraries(Analitza Qt5::Core Qt5::Xml)
target_link_libraries(Analitza PUBLIC Qt5::Core PRIVATE Qt5::Xml)
target_include_directories(Analitza INTERFACE "$<INSTALL_INTERFACE:${ANALITZA_INCLUDE_INSTALL_DIR}>")
set_target_properties(Analitza PROPERTIES VERSION ${ANALITZA_VERSION_STRING} SOVERSION ${ANALITZA_SOVERSION} )
if(EIGEN3_FOUND)
target_sources(Analitza PRIVATE commands/eigencommands.cpp)
target_link_libraries(Analitza Eigen3::Eigen)
target_link_libraries(Analitza PRIVATE Eigen3::Eigen)
endif()
generate_export_header(Analitza EXPORT_FILE_NAME analitzaexport.h)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment