gio-qt/CMakeLists.txt

32 lines
730 B
CMake
Raw Normal View History

2019-07-18 13:53:39 +02:00
project(gio-qt)
cmake_minimum_required(VERSION 3.9.5)
option(BUILD_UTILS "Build utilities" ON)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_FLAGS "-g -Wall")
set(QT_MINIMUM_VERSION "5.6.3")
2019-07-23 09:30:14 +02:00
# Install settings
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr)
endif ()
2019-07-23 11:11:17 +02:00
include(GNUInstallDirs)
2019-07-18 13:53:39 +02:00
# Find the QtWidgets library
find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Core)
find_package(PkgConfig)
2019-07-23 11:11:17 +02:00
pkg_check_modules(GIOMM giomm-2.4) # look into FindPkgConfig.cmake
2019-07-18 13:53:39 +02:00
add_subdirectory (gio-qt)
if (BUILD_UTILS)
add_subdirectory(qgio-tools)
endif()