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)
|
|
|
|
|
2020-04-09 17:55:40 +03:00
|
|
|
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})
|