tbb library included in vcpkg

This commit is contained in:
Jakub Melka 2023-09-08 16:08:07 +02:00
parent 278d385968
commit 17abb360ed
6 changed files with 7 additions and 15 deletions

View File

@ -72,6 +72,10 @@ if (UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
set(LINUX_GCC ON)
endif()
if (LINUX_GCC)
find_package(TBB REQUIRED)
endif()
add_subdirectory(Pdf4QtLib)
add_subdirectory(CodeGenerator)
add_subdirectory(JBIG2_Viewer)

View File

@ -119,7 +119,7 @@ target_link_libraries(Pdf4QtLib PRIVATE openjp2)
target_link_libraries(Pdf4QtLib PRIVATE JPEG::JPEG)
if(LINUX_GCC)
target_link_libraries(Pdf4QtLib PRIVATE tbb)
target_link_libraries(Pdf4QtLib PUBLIC TBB::tbb)
endif()
if(MINGW)

View File

@ -22,10 +22,6 @@ add_executable(Pdf4QtViewerLite
target_link_libraries(Pdf4QtViewerLite PRIVATE Pdf4QtLib Pdf4QtViewer Qt6::Core Qt6::Gui Qt6::Widgets)
if(LINUX_GCC)
target_link_libraries(Pdf4QtViewerLite PRIVATE tbb)
endif()
set_target_properties(Pdf4QtViewerLite PROPERTIES
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON

View File

@ -22,10 +22,6 @@ add_executable(Pdf4QtViewerProfi
target_link_libraries(Pdf4QtViewerProfi PRIVATE Pdf4QtLib Pdf4QtViewer Qt6::Core Qt6::Gui Qt6::Widgets)
if(LINUX_GCC)
target_link_libraries(Pdf4QtViewerProfi PRIVATE tbb)
endif()
set_target_properties(Pdf4QtViewerProfi PROPERTIES
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON

View File

@ -52,8 +52,4 @@ if(MINGW)
target_link_libraries(PdfTool PRIVATE ole32 sapi)
endif()
if(LINUX_GCC)
target_link_libraries(PdfTool PRIVATE tbb)
endif()
install(TARGETS PdfTool)

View File

@ -1,5 +1,5 @@
{
"name": "pdf4qt",
"version-string": "1.3.3",
"dependencies": [ "openssl", "lcms", "zlib", "openjpeg", "freetype", "ijg-libjpeg", "libpng" ]
"version-string": "1.3.4",
"dependencies": [ "tbb", "openssl", "lcms", "zlib", "openjpeg", "freetype", "ijg-libjpeg", "libpng" ]
}