X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=CMakeLists.txt;h=43b67c2ae5449329e1b13ff3cab9f527955f65a3;hb=1f895ac83612cac7c88be79e247ee84a1cf90aa4;hp=5b46f8f473c78ab23165a3c866685811f49949fa;hpb=709ea5f0a8a10e428492ee16d826b7f5f2ab8ca5;p=platform%2Fupstream%2FVK-GL-CTS.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b46f8f..43b67c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ # dEQP cmake file -cmake_minimum_required(VERSION 2.8) +# Module FindGit requires cmake >= 2.8.2 +cmake_minimum_required(VERSION 2.8.2) + +find_package(Git) # dEQP Target. set(DEQP_TARGET "default" CACHE STRING "dEQP Target (default, android...)") @@ -63,8 +66,14 @@ endif () include_directories(${ZLIB_INCLUDE_PATH}) # libpng -find_path(PNG_INCLUDE_PATH png.h) -find_library(PNG_LIBRARY png) +# +# The FindPNG module defines PNG_INCLUDE_DIRS and PNG_LIBRARIES. But dEQP's +# CMake files expect the non-standard PNG_INCLUDE_PATH and PNG_LIBRARY. Set the +# non-standard variables here to retain compatibility with dEQP's existing +# CMake files. +include(FindPNG) +set(PNG_INCLUDE_PATH ${PNG_INCLUDE_DIRS}) +set(PNG_LIBRARY ${PNG_LIBRARIES}) if (NOT PNG_INCLUDE_PATH OR NOT PNG_LIBRARY) message(STATUS "System version of libpng not found, using external/libpng")