CMakeLists.txt 782 Bytes
Newer Older
1
SET(PREFIX_ext_zlib "${EXTPREFIX}" )
2
if (NOT APPLE)
3 4 5
ExternalProject_Add(
    ext_zlib
    DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
6
    URL http://files.kde.org/krita/build/dependencies/zlib-1.2.11.tar.gz
Boudewijn Rempt's avatar
Boudewijn Rempt committed
7
    URL_MD5 1c9f62f0778697a09d36121ead88e08e
8

Alvin Wong's avatar
Alvin Wong committed
9
    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_zlib} -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} ${GLOBAL_PROFILE}
10 11 12

    UPDATE_COMMAND ""
)
13 14 15 16 17 18 19 20 21 22 23 24 25 26
else()
ExternalProject_Add(
    ext_zlib
    DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
    URL http://files.kde.org/krita/build/dependencies/zlib-1.2.11.tar.gz
    URL_MD5 1c9f62f0778697a09d36121ead88e08e

    CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${PREFIX_ext_zlib}   ${GLOBAL_AUTOMAKE_PROFILE}
    BUILD_COMMAND make
    INSTALL_COMMAND make install

    UPDATE_COMMAND ""
)
endif()