4
0
mirror of https://github.com/QuasarApp/Hanoi-Towers.git synced 2025-05-03 04:59:34 +00:00
Hanoi-Towers/CMakeLists.txt

50 lines
1.7 KiB
CMake
Raw Normal View History

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
include(QtNetworkProtocol/QuasarAppLib/CMake/ccache.cmake)
2020-04-21 21:31:05 +03:00
include(QtNetworkProtocol/QuasarAppLib/CMake/QuasarAppCITargets.cmake)
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-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")
if (WIN32)
addDeployQIF("Client" ${INSTALLER_DIR} ${TARGET_DIR} "${INSTALLER_DIR}/config/configWin.xml")
else (WIN32)
addDeployQIF("Client" ${INSTALLER_DIR} ${TARGET_DIR} "${INSTALLER_DIR}/config/configLinux.xml")
2020-04-22 21:11:05 +03:00
addDeploySnap("store" ${TARGET_DIR})
addReleaseSnap("store")
endif(WIN32)
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
2020-05-04 09:09:52 +03:00
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/"Distro")
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)
2020-05-03 16:14:32 +03:00
initAll()
2020-04-21 21:31:05 +03:00