mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-04-26 09:44:32 +00:00
36 lines
940 B
CMake
36 lines
940 B
CMake
#
|
|
# Copyright (C) 2018-2021 QuasarApp.
|
|
# Distributed under the lgplv3 software license, see the accompanying
|
|
# Everyone is permitted to copy and distribute verbatim copies
|
|
# of this license document, but changing it is not allowed.
|
|
#
|
|
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
|
|
set(CURRENT_PROJECT "${PROJECT_NAME}Protockol")
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
add_definitions(-DHANOITOWERSPROTOCOL_LIBRARY)
|
|
|
|
file(GLOB SOURCE_CPP
|
|
"src/*.cpp"
|
|
"src/*.qrc"
|
|
"src/private/*.cpp"
|
|
"src/private/*.qrc"
|
|
|
|
"src/*.h"
|
|
"src/private/*.h"
|
|
)
|
|
|
|
add_library(${CURRENT_PROJECT} ${SOURCE_CPP})
|
|
target_link_libraries(${CURRENT_PROJECT} PUBLIC Heart)
|
|
target_include_directories(${CURRENT_PROJECT} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
target_include_directories(${CURRENT_PROJECT} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/private")
|
|
|