It's not a direct answer to your question but I use the attached preamble
CMakeLists.txt to load PoDoFo targets (I currently use version from
SVN) in my project. I basically put in the cache all the variables that
find_package is supposed to fill. Maybe there are better ways that I
don't know.

I hope it helps.

On 11 April 2018 at 01:36, BLANCHARD Christophe
<christophe.blanch...@3ds.com> wrote:
>
> Could somebody help me to fix this issue, please ?
>
>
>
> Thank you in advance.
>
>
if (WIN32)
    set(ZLIB_INCLUDE_DIR "${DEPS_PATH}/zlib-1.2.11/include" CACHE PATH "" FORCE)
    set(ZLIB_LIBRARY_DEBUG 
"${DEPS_PATH}/zlib-1.2.11/lib/${ARCH}/zlibstaticd.lib" CACHE FILEPATH "" FORCE)
    set(ZLIB_LIBRARY_RELEASE 
"${DEPS_PATH}/zlib-1.2.11/lib/${ARCH}/zlibstatic.lib" CACHE FILEPATH "" FORCE)
    set(FREETYPE_INCLUDE_DIR_FT2BUILD "${DEPS_PATH}/freetype-2.9/include" CACHE 
PATH "" FORCE)
    set(FREETYPE_INCLUDE_DIR_FTHEADER 
"${DEPS_PATH}/freetype-2.9/include/freetype2" CACHE PATH "" FORCE)
    set(FREETYPE_LIBRARY_DEBUG 
"${DEPS_PATH}/freetype-2.9/lib/${ARCH}/freetyped.lib" CACHE FILEPATH "" FORCE)
    set(FREETYPE_LIBRARY_RELEASE 
"${DEPS_PATH}/freetype-2.9/lib/${ARCH}/freetype.lib" CACHE FILEPATH "" FORCE)
    set(LIBCRYPTO_INCLUDE_DIR "${DEPS_PATH}/openssl-1.1.0g/include" CACHE PATH 
"" FORCE)
    set(LIBCRYPTO_LIBRARY_DEBUG 
"${DEPS_PATH}/openssl-1.1.0g/lib/${ARCH}/Debug/libcrypto.lib" CACHE FILEPATH "" 
FORCE)
    set(LIBCRYPTO_LIBRARY_RELEASE 
"${DEPS_PATH}/openssl-1.1.0g/lib/${ARCH}/Release/libcrypto.lib" CACHE FILEPATH 
"" FORCE)
    set(OPENSSL_INCLUDE_DIR "${DEPS_PATH}/openssl-1.1.0g/include" CACHE PATH "" 
FORCE)
    set(SSL_EAY_DEBUG 
"${DEPS_PATH}/openssl-1.1.0g/lib/${ARCH}/Debug/libssl.lib" CACHE FILEPATH "" 
FORCE)
    set(SSL_EAY_RELEASE 
"${DEPS_PATH}/openssl-1.1.0g/lib/${ARCH}/Release/libssl.lib" CACHE FILEPATH "" 
FORCE)
    set(PNG_LIBRARY_DEBUG 
"${DEPS_PATH}/libpng-1.6.34/lib/${ARCH}/libpng16_staticd.lib" CACHE FILEPATH "" 
FORCE)
    set(PNG_LIBRARY_RELEASE 
"${DEPS_PATH}/libpng-1.6.34/lib/${ARCH}/libpng16_static.lib" CACHE FILEPATH "" 
FORCE)
    set(PNG_PNG_INCLUDE_DIR "${DEPS_PATH}/libpng-1.6.34/include" CACHE PATH "" 
FORCE)
    set(LIBJPEG_INCLUDE_DIR "${DEPS_PATH}/libjpeg-9c/include" CACHE PATH "" 
FORCE)
    set(LIBJPEG_LIBRARY_DEBUG "${DEPS_PATH}/libjpeg-9c/lib/${ARCH}/jpegd.lib" 
CACHE FILEPATH "" FORCE)
    set(LIBJPEG_LIBRARY_RELEASE "${DEPS_PATH}/libjpeg-9c/lib/${ARCH}/jpeg.lib" 
CACHE FILEPATH "" FORCE)
    set(TIFF_INCLUDE_DIR "${DEPS_PATH}/tiff-4.0.9/include" CACHE PATH "" FORCE)
    set(TIFF_LIBRARY_DEBUG "${DEPS_PATH}/tiff-4.0.9/lib/${ARCH}/tiffd.lib" 
CACHE FILEPATH "" FORCE)
    set(TIFF_LIBRARY_RELEASE "${DEPS_PATH}/tiff-4.0.9/lib/${ARCH}/tiff.lib" 
CACHE FILEPATH "" FORCE)
endif()

set(PODOFO_BUILD_STATIC TRUE CACHE BOOL "" FORCE)

add_subdirectory("$ENV{EN_GIT_PATH}/PoDoFo" "${CMAKE_BINARY_DIR}/podofo/PoDoFo" 
EXCLUDE_FROM_ALL)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to