yuzu/externals/vcpkg/ports/jbig2dec/CMakeLists.txt
2022-07-23 03:01:36 +02:00

24 lines
532 B
CMake
Executable File

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()