4
0
mirror of https://github.com/QuasarApp/Hanoi-Towers.git synced 2025-05-08 15:39:33 +00:00
Hanoi-Towers/CMakeLists.txt

37 lines
1.2 KiB
CMake
Raw Normal View History

2020-03-31 12:00:43 +03:00
#
# Copyright (C) 2018-2019 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)
project(MainHanoiTowers)
# Add sub directories
add_subdirectory(SimpleQmlNotify)
add_subdirectory(QtNetworkProtocol)
add_subdirectory(HanoiTowersServer)
add_subdirectory(hanoi_towers)
include(QtNetworkProtocol/QuasarAppLib/CMake/QuasarAppCITargets.cmake)
SET(DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/hanoi_towers/installer/packages/HanoiTowers/data")
SET(BIB_APP "${HanoiTowers_BIN_DIR}/HanoiTowers")
initRelease()
if (WIN32)
initDeployQML(${BIB_APP}.exe ${DATA_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
initDeployQIF(${DATA_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/installer" "${CMAKE_CURRENT_SOURCE_DIR}/installer/configWin.xml")
else (WIN32)
initDeployQML(${BIB_APP} ${DATA_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
initDeployQIF(${DATA_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/installer" "${CMAKE_CURRENT_SOURCE_DIR}/installer/configLinux.xml")
initDeploySnap(${DATA_DIR})
initReleaseSnap()
endif(WIN32)
initReleaseQif(${DATA_DIR})