Skip to content

Commit

Permalink
export symbols for jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Aug 24, 2023
1 parent f8fcb56 commit dea1c97
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions vcpkg-overlay/ports/libjpeg-turbo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
cmake_minimum_required(VERSION 3.6)
project(JPEG)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

add_library(
jpeg ${JPEG_BUILD_TYPE}
jcapimin.c
Expand Down Expand Up @@ -76,16 +78,5 @@ target_compile_definitions(jpeg PUBLIC -DRENAME_INTERNAL_LIBJPEG_SYMBOLS)
configure_file(libjpeg.pc.in libjpeg.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libjpeg.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)

IF(WIN32)
INSTALL(TARGETS jpeg
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
)
ELSE(WIN32)
INSTALL(TARGETS jpeg
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
ENDIF(WIN32)

INSTALL(TARGETS jpeg)
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION include FILES_MATCHING PATTERN "*.h")

0 comments on commit dea1c97

Please sign in to comment.