Improve project template [skip ci]

This commit is contained in:
halx99 2022-06-24 03:09:20 +08:00
parent 0b19d999e9
commit 95e8b68051
2 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,9 @@ if (AX_WITH_YAML_CPP)
endif() endif()
if (_AX_USE_PREBUILT) # support windows only if (_AX_USE_PREBUILT) # support windows only
include(${ADXE_ROOT_PATH}/cmake/Modules/CocosConfigDefine.cmake)
use_cocos2dx_compile_define(${APP_NAME})
include(${ADXE_ROOT_PATH}/cmake/Modules/AdxeLinkHelpers.cmake) include(${ADXE_ROOT_PATH}/cmake/Modules/AdxeLinkHelpers.cmake)
adxe_link_cxx_prebuilt(${APP_NAME} ${ADXE_ROOT_PATH} ${AX_PREBUILT_DIR}) adxe_link_cxx_prebuilt(${APP_NAME} ${ADXE_ROOT_PATH} ${AX_PREBUILT_DIR})
endif() endif()

View File

@ -212,6 +212,9 @@ if (AX_WITH_YAML_CPP)
endif() endif()
if (_AX_USE_PREBUILT) # support windows only if (_AX_USE_PREBUILT) # support windows only
include(${ADXE_ROOT_PATH}/cmake/Modules/CocosConfigDefine.cmake)
use_cocos2dx_compile_define(${APP_NAME})
include(${ADXE_ROOT_PATH}/cmake/Modules/AdxeLinkHelpers.cmake) include(${ADXE_ROOT_PATH}/cmake/Modules/AdxeLinkHelpers.cmake)
adxe_link_lua_prebuilt(${APP_NAME} ${ADXE_ROOT_PATH} ${AX_PREBUILT_DIR}) adxe_link_lua_prebuilt(${APP_NAME} ${ADXE_ROOT_PATH} ${AX_PREBUILT_DIR})
endif() endif()