diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index 854674d..f61a294 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -47,7 +47,7 @@ endif() if(ZINT_USE_PNG AND PNG_FOUND) zint_target_link_libraries(PNG::PNG) else() - zint_target_compile_definitions(PUBLIC NO_PNG) + zint_target_compile_definitions(PRIVATE NO_PNG) endif() if(ZINT_TEST) @@ -63,7 +63,13 @@ if(MSVC) target_compile_definitions(zint PRIVATE DLL_EXPORT) endif() -install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS}) +target_include_directories(zint PUBLIC + $ + $ +) + +install(TARGETS zint EXPORT unofficial-zint-targets ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(EXPORT unofficial-zint-targets NAMESPACE unofficial::zint:: DESTINATION share/unofficial-zint) if(ZINT_STATIC) install(TARGETS zint-static ${INSTALL_TARGETS_DEFAULT_ARGS}) endif()