forked from oguzhaninan/Stacer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (20 loc) · 968 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(Stacer)
# Adding features(build cache + faster linkers) and reasonable defaults(Debug build by default)
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxxbasics/CXXBasics.cmake")
# Setting a cleaner directory structure for the generated binaries
set(CMAKE_BINARY_DIR "${CMAKE_BINARY_DIR}/output")
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/")
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib")
set(PROJECT_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")
# Activating MOC and searching for the Qt5 dependencies
set(CMAKE_AUTOMOC ON)
find_package(Qt5 COMPONENTS Core Gui Widgets Charts Svg Concurrent REQUIRED)
# Setting the minimum C++ standard and passing the Qt-specific define
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS YES)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
add_definitions(-DQT_DEPRECATED_WARNINGS)
# Subprojects
add_subdirectory(stacer-core)
add_subdirectory(stacer)