mirror of https://github.com/JakubMelka/PDF4QT.git
tbb library included in vcpkg
This commit is contained in:
parent
278d385968
commit
17abb360ed
|
@ -72,6 +72,10 @@ if (UNIX AND NOT APPLE AND CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set(LINUX_GCC ON)
|
set(LINUX_GCC ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (LINUX_GCC)
|
||||||
|
find_package(TBB REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(Pdf4QtLib)
|
add_subdirectory(Pdf4QtLib)
|
||||||
add_subdirectory(CodeGenerator)
|
add_subdirectory(CodeGenerator)
|
||||||
add_subdirectory(JBIG2_Viewer)
|
add_subdirectory(JBIG2_Viewer)
|
||||||
|
|
|
@ -119,7 +119,7 @@ target_link_libraries(Pdf4QtLib PRIVATE openjp2)
|
||||||
target_link_libraries(Pdf4QtLib PRIVATE JPEG::JPEG)
|
target_link_libraries(Pdf4QtLib PRIVATE JPEG::JPEG)
|
||||||
|
|
||||||
if(LINUX_GCC)
|
if(LINUX_GCC)
|
||||||
target_link_libraries(Pdf4QtLib PRIVATE tbb)
|
target_link_libraries(Pdf4QtLib PUBLIC TBB::tbb)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
|
|
|
@ -22,10 +22,6 @@ add_executable(Pdf4QtViewerLite
|
||||||
|
|
||||||
target_link_libraries(Pdf4QtViewerLite PRIVATE Pdf4QtLib Pdf4QtViewer Qt6::Core Qt6::Gui Qt6::Widgets)
|
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
|
set_target_properties(Pdf4QtViewerLite PROPERTIES
|
||||||
WIN32_EXECUTABLE ON
|
WIN32_EXECUTABLE ON
|
||||||
MACOSX_BUNDLE ON
|
MACOSX_BUNDLE ON
|
||||||
|
|
|
@ -22,10 +22,6 @@ add_executable(Pdf4QtViewerProfi
|
||||||
|
|
||||||
target_link_libraries(Pdf4QtViewerProfi PRIVATE Pdf4QtLib Pdf4QtViewer Qt6::Core Qt6::Gui Qt6::Widgets)
|
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
|
set_target_properties(Pdf4QtViewerProfi PROPERTIES
|
||||||
WIN32_EXECUTABLE ON
|
WIN32_EXECUTABLE ON
|
||||||
MACOSX_BUNDLE ON
|
MACOSX_BUNDLE ON
|
||||||
|
|
|
@ -52,8 +52,4 @@ if(MINGW)
|
||||||
target_link_libraries(PdfTool PRIVATE ole32 sapi)
|
target_link_libraries(PdfTool PRIVATE ole32 sapi)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(LINUX_GCC)
|
|
||||||
target_link_libraries(PdfTool PRIVATE tbb)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(TARGETS PdfTool)
|
install(TARGETS PdfTool)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "pdf4qt",
|
"name": "pdf4qt",
|
||||||
"version-string": "1.3.3",
|
"version-string": "1.3.4",
|
||||||
"dependencies": [ "openssl", "lcms", "zlib", "openjpeg", "freetype", "ijg-libjpeg", "libpng" ]
|
"dependencies": [ "tbb", "openssl", "lcms", "zlib", "openjpeg", "freetype", "ijg-libjpeg", "libpng" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue