2020-03-31 12:00:43 +03:00
|
|
|
#
|
2021-01-31 20:01:20 +03:00
|
|
|
# Copyright (C) 2018-2021 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-10-23 14:15:58 +03:00
|
|
|
set(BUILD_SHARED_LIBS ON)
|
|
|
|
|
2021-04-12 12:25:45 +03:00
|
|
|
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
|
|
|
|
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
|
|
|
|
include(QuasarAppLib/CMake/QuasarAppCITargets.cmake)
|
|
|
|
initAll()
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2020-10-22 18:11:04 +03:00
|
|
|
include(Heart/QuasarAppLib/CMake/ccache.cmake)
|
|
|
|
include(Heart/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()
|
2021-04-12 12:24:02 +03:00
|
|
|
addDoc(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf)
|
2020-05-09 00:42:29 +03:00
|
|
|
|
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")
|
|
|
|
|
2021-03-22 12:00:57 +03:00
|
|
|
#if (WIN32)
|
|
|
|
# addDeployQIF("Client" ${INSTALLER_DIR} ${TARGET_DIR} "${INSTALLER_DIR}/config/configWin.xml")
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2021-03-22 12:00:57 +03:00
|
|
|
#else (WIN32)
|
|
|
|
# addDeployQIF("Client" ${INSTALLER_DIR} ${TARGET_DIR} "${INSTALLER_DIR}/config/configLinux.xml")
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2021-03-22 12:00:57 +03:00
|
|
|
#addDeploySnap("Client" ${TARGET_DIR})
|
|
|
|
#addReleaseSnap("Client")
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2021-03-22 12:00:57 +03:00
|
|
|
#endif(WIN32)
|
2020-04-09 17:55:40 +03:00
|
|
|
|
2021-03-22 12:00:57 +03:00
|
|
|
#addReleaseQif("Client" ${DATA_DIR} ${TARGET_DIR})
|
2020-04-09 21:47:05 +03:00
|
|
|
|
2021-03-22 12:00:57 +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
|
2020-10-22 18:11:04 +03:00
|
|
|
add_subdirectory(Heart)
|
2020-10-23 14:15:58 +03:00
|
|
|
add_subdirectory(Patronum)
|
2020-10-22 22:57:37 +03:00
|
|
|
add_subdirectory(HanoiTowers)
|
2020-05-24 02:24:49 +03:00
|
|
|
#add_subdirectory(hanoi_towers/ViewSolutions)
|
|
|
|
|
2020-10-23 14:15:58 +03:00
|
|
|
|
2020-04-21 21:31:05 +03:00
|
|
|
|
|
|
|
|