mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-03 00:19:51 -04:00
Fix compilation errors when using CMake to add a project through add_subdirectory.
This commit is contained in:
parent
2287b9ab0a
commit
7080918350
6 changed files with 34 additions and 23 deletions
|
@ -46,7 +46,7 @@ if(WIN32)
|
|||
target_sources(${PROJECT_NAME} PRIVATE res/qtZint.rc)
|
||||
endif()
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend" "${CMAKE_SOURCE_DIR}/backend_qt")
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../backend" "${CMAKE_CURRENT_SOURCE_DIR}/../backend_qt")
|
||||
|
||||
if(ZINT_SHARED)
|
||||
target_link_libraries(${PROJECT_NAME} zint)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue