Add external_jpeg
This commit is contained in:
parent
84ce1c5c65
commit
ed9fa2e798
4 changed files with 31 additions and 0 deletions
1
external/CMakeLists.txt
vendored
1
external/CMakeLists.txt
vendored
|
|
@ -33,6 +33,7 @@ if (add_hunspell_library)
|
|||
add_checked_subdirectory(hunspell)
|
||||
endif()
|
||||
add_checked_subdirectory(iconv)
|
||||
add_checked_subdirectory(jpeg)
|
||||
add_checked_subdirectory(lz4)
|
||||
if (LINUX)
|
||||
add_checked_subdirectory(materialdecoration)
|
||||
|
|
|
|||
22
external/jpeg/CMakeLists.txt
vendored
Normal file
22
external/jpeg/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# This file is part of Desktop App Toolkit,
|
||||
# a set of libraries for developing nice desktop applications.
|
||||
#
|
||||
# For license and copyright information please follow this link:
|
||||
# https://github.com/desktop-app/legal/blob/master/LEGAL
|
||||
|
||||
add_library(external_jpeg INTERFACE IMPORTED GLOBAL)
|
||||
add_library(desktop-app::external_jpeg ALIAS external_jpeg)
|
||||
|
||||
if (DESKTOP_APP_USE_PACKAGED)
|
||||
find_package(JPEG)
|
||||
target_link_libraries(external_jpeg INTERFACE JPEG::JPEG)
|
||||
elseif (WIN32)
|
||||
target_include_directories(external_jpeg INTERFACE ${libs_loc}/mozjpeg)
|
||||
target_link_libraries(external_jpeg INTERFACE ${libs_loc}/mozjpeg/$<IF:$<CONFIG:Debug>,Debug,Release>/jpeg-static.lib)
|
||||
elseif (APPLE AND NOT build_osx)
|
||||
target_link_libraries(external_jpeg INTERFACE /usr/local/macos/lib/libjpeg.a)
|
||||
elseif (APPLE)
|
||||
target_link_libraries(external_jpeg INTERFACE /usr/local/lib/libjpeg.a)
|
||||
else()
|
||||
target_link_static_libraries(external_jpeg INTERFACE jpeg)
|
||||
endif()
|
||||
7
external/qt/CMakeLists.txt
vendored
7
external/qt/CMakeLists.txt
vendored
|
|
@ -202,6 +202,11 @@ else()
|
|||
foreach (lib ${qt_libs})
|
||||
list(APPEND qt_libs_list "${qt_loc}/${lib}${qt_lib_suffix}")
|
||||
endforeach()
|
||||
target_link_libraries(external_qt
|
||||
INTERFACE
|
||||
desktop-app::external_jpeg
|
||||
desktop-app::external_zlib
|
||||
)
|
||||
elseif (APPLE)
|
||||
if (NOT build_osx)
|
||||
set(qt_libs
|
||||
|
|
@ -235,6 +240,7 @@ else()
|
|||
endforeach()
|
||||
target_link_libraries(external_qt
|
||||
INTERFACE
|
||||
desktop-app::external_jpeg
|
||||
desktop-app::external_zlib
|
||||
cups
|
||||
)
|
||||
|
|
@ -354,6 +360,7 @@ else()
|
|||
endif()
|
||||
target_link_libraries(external_qt
|
||||
INTERFACE
|
||||
desktop-app::external_jpeg
|
||||
desktop-app::external_zlib
|
||||
ICE
|
||||
SM
|
||||
|
|
|
|||
1
external/webrtc/CMakeLists.txt
vendored
1
external/webrtc/CMakeLists.txt
vendored
|
|
@ -98,5 +98,6 @@ else()
|
|||
INTERFACE
|
||||
${webrtc_libs_list}
|
||||
desktop-app::external_openssl
|
||||
desktop-app::external_jpeg
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue