mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-05 01:24:53 +01:00
Starting with CMake 3.7, we can avoid dealing with individual variables for include dirs, libraries, ... for dependencies found using pkg-config, and instead just reference them using an imported target.
9 lines
227 B
CMake
9 lines
227 B
CMake
cmake_minimum_required(VERSION 3.7)
|
|
project(MINEDMAP CXX)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(ZLIB REQUIRED IMPORTED_TARGET zlib)
|
|
pkg_check_modules(PNG REQUIRED IMPORTED_TARGET libpng16)
|
|
|
|
add_subdirectory(src)
|