2020-03-31 12:00:43 +03:00
|
|
|
#
|
2020-04-19 12:42:40 +03:00
|
|
|
# Copyright (C) 2018-2020 QuasarApp.
|
2020-03-31 12:00:43 +03:00
|
|
|
# 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)
|
2020-05-03 20:38:35 +03:00
|
|
|
project(HanoiTowers)
|
2020-03-31 12:00:43 +03:00
|
|
|
|
2020-04-16 20:52:46 +03:00
|
|
|
include(QtNetworkProtocol/QuasarAppLib/CMake/ccache.cmake)
|
2020-04-21 21:31:05 +03:00
|
|
|
include(QtNetworkProtocol/QuasarAppLib/CMake/QuasarAppCITargets.cmake)
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2020-04-25 13:58:36 +03:00
|
|
|
SET(INSTALLER_DIR "${CMAKE_CURRENT_SOURCE_DIR}/installer/")
|
|
|
|
SET(DATA_DIR "${INSTALLER_DIR}/packages/HanoiTowers/data")
|
|
|
|
|
2020-04-21 21:31:05 +03:00
|
|
|
SET(BIB_APP "${CMAKE_CURRENT_SOURCE_DIR}/hanoi_towers/build/Release/HanoiTowers")
|
2020-04-09 21:47:05 +03:00
|
|
|
SET(TARGET_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Distro")
|
2020-05-20 12:01:22 +03:00
|
|
|
SET(PRODUCT_VER_Mj 1)
|
|
|
|
SET(PRODUCT_VER_Mn 6)
|
|
|
|
SET(PRODUCT_VER_Re 0)
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2020-05-04 11:58:54 +03:00
|
|
|
file(MAKE_DIRECTORY ${TARGET_DIR})
|
|
|
|
|
2020-05-09 00:42:29 +03:00
|
|
|
initAll()
|
|
|
|
|
2020-04-22 21:11:05 +03:00
|
|
|
addDeployFromCustomFile("Client" "${CMAKE_CURRENT_SOURCE_DIR}/Deploy/Client.json")
|
|
|
|
addDeployFromCustomFile("Server" "${CMAKE_CURRENT_SOURCE_DIR}/Deploy/Server.json")
|
|
|
|
|
2020-04-09 17:55:40 +03:00
|
|
|
if (WIN32)
|
2020-04-25 13:58:36 +03:00
|
|
|
addDeployQIF("Client" ${INSTALLER_DIR} ${TARGET_DIR} "${INSTALLER_DIR}/config/configWin.xml")
|
2020-04-09 17:55:40 +03:00
|
|
|
|
|
|
|
else (WIN32)
|
2020-04-25 13:58:36 +03:00
|
|
|
addDeployQIF("Client" ${INSTALLER_DIR} ${TARGET_DIR} "${INSTALLER_DIR}/config/configLinux.xml")
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2020-05-04 12:14:22 +03:00
|
|
|
addDeploySnap("Client" ${TARGET_DIR})
|
|
|
|
addReleaseSnap("Client")
|
2020-04-09 17:55:40 +03:00
|
|
|
|
|
|
|
endif(WIN32)
|
|
|
|
|
2020-04-25 13:58:36 +03:00
|
|
|
addReleaseQif("Client" ${DATA_DIR} ${TARGET_DIR})
|
2020-04-09 21:47:05 +03:00
|
|
|
|
2020-04-22 21:11:05 +03:00
|
|
|
addDeployAPK("Android" "${CMAKE_CURRENT_SOURCE_DIR}/hanoi_towers/android-libHanoiTowers.so-deployment-settings.json" "digitalface" "${SIGN_PATH}/DigitalFaceMobily.keystore" "${SIGN_STORE_PASSWORD}" "${TARGET_DIR}")
|
2020-04-21 21:31:05 +03:00
|
|
|
|
|
|
|
|
|
|
|
# Add sub directories
|
|
|
|
add_subdirectory(SimpleQmlNotify)
|
|
|
|
add_subdirectory(QtNetworkProtocol)
|
|
|
|
add_subdirectory(hanoi_towers)
|
|
|
|
add_subdirectory(Patronum)
|
|
|
|
add_subdirectory(HanoiTowersServer)
|
|
|
|
add_subdirectory(HanoiTowersTerminal)
|
|
|
|
|
|
|
|
|