mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Fix compilation errors when using CMake to add a project through add_subdirectory.
This commit is contained in:
@ -17,7 +17,7 @@ add_library(${PROJECT_NAME} STATIC ${QZint_SRCS})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
||||
VERSION ${ZINT_VERSION})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend")
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../backend")
|
||||
|
||||
if(ZINT_SHARED)
|
||||
target_link_libraries(${PROJECT_NAME} zint)
|
||||
|
Reference in New Issue
Block a user