I am trying to compile a cross platform QT Application for windows via AppVeyor with cmake.
Under Linux the cmake compiles just fine, so the CMakeLists.txt should be valid.
AppVeyor compiles a necessary library, which works, too. But when it comes to the project CMakeLists.txt it fails with the following errors:
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPNG.cmake:157 (find_package_handle_standard_args)
CMakeLists.txt:20 (find_package)
the corresponding part inside the CMakeLists.txt is:
find_package(PNG REQUIRED)
[...some other cmake stuff...]
# link required other libraries
include_directories(${PNG_INCLUDE_DIR} ${GSL_INCLUDE_DIRS})
target_link_libraries(projectName ${PNG_LIBRARY} ${GSL_LIBRARIES})
this is the current build fail: https://ci.appveyor.com/project/zebastian/mandelbulber2
the used CMakeLists.txt and appveyor.yml file can be found in the project root here: https://github.com/zebastian/mandelbulber2
Since the FindPNG.cmake is present it seems that only zlib is missing, which seems a little odd. I have seen a couple of appveyor.yml files which circumvent this problem by downloading and compiling some png / zlib source folders or by using external dependencies, but IMHO this should be a simple task for the CI.
Or am i missing something?
Any help appreciated...