mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-04-20 11:35:07 +02:00
23 lines
578 B
CMake
23 lines
578 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
project(MINEDMAP CXX)
|
|
|
|
|
|
# search for pkg-config
|
|
include (FindPkgConfig)
|
|
if (NOT PKG_CONFIG_FOUND)
|
|
message (FATAL_ERROR "pkg-config not found")
|
|
endif ()
|
|
|
|
# check for libpng
|
|
pkg_check_modules (LIBPNG libpng16 REQUIRED)
|
|
if (NOT LIBPNG_FOUND)
|
|
message(FATAL_ERROR "You don't seem to have libpng16 development libraries installed")
|
|
else ()
|
|
include_directories (${LIBPNG_INCLUDE_DIRS})
|
|
link_directories (${LIBPNG_LIBRARY_DIRS})
|
|
link_libraries (${LIBPNG_LIBRARIES})
|
|
endif ()
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
|
|
add_subdirectory(src)
|