Interface include paths are needed in order to automatically add paths
when adding minizip as a dependent library.
DO_SPLIT_DEBUG() breaks the static library:
../../../extlib/minizip/libminizip.a: error adding symbols: Archive has no index; run ranlib to add one
This function sets common properties on extlib targets.
[zlib] Remove the MSVC debug path and build exclusion settings, since
these are now set by the parent CMakeLists.txt file.
msvc.cmake: Specify MASM flags "/W0 /safeseh". This fixes the 32-bit masm
build when using MSBUILD with MSVC 2015. 64-bit wasn't affected, though
we're setting it for all MSVC platforms.
libromdata/tests/CMakeLists.txt:
- Link to gtest directly instead of ${GTEST_LIBRARY}.
- Removed INCLUDE_DIRECTORIES() for googletest, since it's added to
TARGET_INCLUDE_DIRECTORIES() by googletest's CMakeLists.txt.
extlib/googletest/googletest/CMakeLists.txt:
- Uncommented gtest_hide_internal_symbols.
Removed cmake/gtest.cmake, since it doesn't have anything useful other
than INCLUDE(CTest), which is now present in the top-level CMakeLists.txt.
Unlike the aforementioned two programs, this copy of zlib will *only*
be used for Windows builds, and it will only be used for test suites.
We're using GDI+ instead of libpng, so the only reason we need zlib
is to decompress the compressed reference BMP images used by
RpImageLoaderTest.
Changes compared to upstream zlib-1.2.8:
- Non-CMake build infratsructure has been removed.
- CMakeLists.txt has been edited to prevent building the Win32 resource
data when being built as a shared library.
- Example binaries are no longer built.
- The GZip functions are now prefixed with "mcr_z_" in order to prevent
function naming conflicts with Qt4/Win32, which has its own copy of
zlib that exposes the same functions.
- The OF() and ON() macros have been renamed to _Z_OF() and _Z_ON().
Based on Gentoo's zlib-1.2.8 patches.
- contrib/ has been stripped of everything but asm-optimized functions.
- 64-bit assembly-optimized routines now check for __x86_64__ in addition
to __amd64__ for compatibility with certain compilers, e.g. icc.
- CMakeLists.txt adds -DZLIB_CONST to the zlib and zlibstatic targets'
compile definitions.
Google Test will be used for implementing unit tests. The first set of
unit tests will be for testing RpPng with various PNG image formats.
The Google Test code is currently identical to the release archive,
except for the removal of .travis.yml and appveyor.xml.
CMakeLists.txt: Added CTest support. (see cmake/gtest.cmake)
extlibs/CMakeLists.txt: Only build googletest libraries if testing is
enabled and some project depends on them.