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)
|
add_checked_subdirectory(hunspell)
|
||||||
endif()
|
endif()
|
||||||
add_checked_subdirectory(iconv)
|
add_checked_subdirectory(iconv)
|
||||||
|
add_checked_subdirectory(jpeg)
|
||||||
add_checked_subdirectory(lz4)
|
add_checked_subdirectory(lz4)
|
||||||
if (LINUX)
|
if (LINUX)
|
||||||
add_checked_subdirectory(materialdecoration)
|
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})
|
foreach (lib ${qt_libs})
|
||||||
list(APPEND qt_libs_list "${qt_loc}/${lib}${qt_lib_suffix}")
|
list(APPEND qt_libs_list "${qt_loc}/${lib}${qt_lib_suffix}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
target_link_libraries(external_qt
|
||||||
|
INTERFACE
|
||||||
|
desktop-app::external_jpeg
|
||||||
|
desktop-app::external_zlib
|
||||||
|
)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
if (NOT build_osx)
|
if (NOT build_osx)
|
||||||
set(qt_libs
|
set(qt_libs
|
||||||
|
|
@ -235,6 +240,7 @@ else()
|
||||||
endforeach()
|
endforeach()
|
||||||
target_link_libraries(external_qt
|
target_link_libraries(external_qt
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
desktop-app::external_jpeg
|
||||||
desktop-app::external_zlib
|
desktop-app::external_zlib
|
||||||
cups
|
cups
|
||||||
)
|
)
|
||||||
|
|
@ -354,6 +360,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(external_qt
|
target_link_libraries(external_qt
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
desktop-app::external_jpeg
|
||||||
desktop-app::external_zlib
|
desktop-app::external_zlib
|
||||||
ICE
|
ICE
|
||||||
SM
|
SM
|
||||||
|
|
|
||||||
1
external/webrtc/CMakeLists.txt
vendored
1
external/webrtc/CMakeLists.txt
vendored
|
|
@ -98,5 +98,6 @@ else()
|
||||||
INTERFACE
|
INTERFACE
|
||||||
${webrtc_libs_list}
|
${webrtc_libs_list}
|
||||||
desktop-app::external_openssl
|
desktop-app::external_openssl
|
||||||
|
desktop-app::external_jpeg
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue