From 4d4b76c186c60c6aa927996a2f568ba6377afac1 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 29 Sep 2021 22:22:52 +0200 Subject: Integrated zlib and libpng closer into the cmake tree --- zlib/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zlib/CMakeLists.txt') diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt index 0fe939d..312f0ee 100644 --- a/zlib/CMakeLists.txt +++ b/zlib/CMakeLists.txt @@ -187,6 +187,10 @@ add_library(zlib SHARED ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_DLL_SRCS} ${ZLIB_PUBLIC add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS}) set_target_properties(zlib PROPERTIES DEFINE_SYMBOL ZLIB_DLL) set_target_properties(zlib PROPERTIES SOVERSION 1) +target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) +target_include_directories(zlibstatic PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) +add_library(Zlib::zlib ALIAS zlib) +add_library(Zlib::zlibstatic ALIAS zlibstatic) if(NOT CYGWIN) # This property causes shared libraries on Linux to have the full version -- cgit v1.1