mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:49:07 +08:00
f2e1c52db8
* [gdcm,jbig2dec] minor fixes * [libmupdf] remove wrong vs define * [gdcm] internal libs do not export symbols and fail to build when non-static
24 lines
532 B
CMake
24 lines
532 B
CMake
cmake_minimum_required(VERSION 3.9)
|
|
project(jbig2dec C)
|
|
|
|
set(CMAKE_DEBUG_POSTFIX d)
|
|
|
|
file(GLOB SOURCES jbig2*.c)
|
|
list(REMOVE_ITEM SOURCES
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2dec.c"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2_image_png.c"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2_image_pbm.c"
|
|
)
|
|
|
|
add_library(jbig2dec ${SOURCES})
|
|
|
|
install(TARGETS jbig2dec
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(FILES jbig2.h DESTINATION include)
|
|
endif()
|