[jxrlib] Add debug postfix and do not install SKD header

Add a debug postfix to jxrlib, to simplify
finding the debug library in CMake, consistently
with most other libraries in vcpkg.

Do not use or install guiddef.h, that is an header
of Windows SDK of which jxrlib includes a copy for
non-Windows platforms.
This commit is contained in:
Silvio 2016-11-16 23:09:42 +01:00
parent 009378acce
commit 50d52d49bc
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,9 @@ project(jxrlib C)
# Need shared libs for ABI
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
# Add a debug postfix
set(CMAKE_DEBUG_POSTFIX "d")
# helper macro to preserve original Makefile convention
macro(JXR_MAKE_OBJ SET_NAME)
foreach(src ${SRC_${SET_NAME}})

View File

@ -9,6 +9,10 @@ vcpkg_extract_source_archive(${ARCHIVE})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
# The file guiddef.h is part of the Windows SDK,
# we then remove the local copy shipped with jxrlib
file(REMOVE ${SOURCE_PATH}/common/include/guiddef.h)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:BOOL=ON