Currently, I use cocos2dx v3.17.2 and Visual studio 2017/2019.
As you can see this code below
if(LINUX OR WINDOWS)
set(APP_RES_DIR "$<TARGET_FILE_DIR:${APP_NAME}>/Resources")
cocos_copy_target_res(${APP_NAME} COPY_TO ${APP_RES_DIR} FOLDERS ${GAME_RES_FOLDER})
endif()
→ If there is any change in source code ( not Resouces folder ) → all files in the Resouces folder will copy to the build folder. It’s quite a waste of my time because in the Resources folder I have a lot of files ( images, audios, fonts .etc…)
→ Now, I just want to copy the Resources folder to build a folder when the Resouces folder has changed files! Can someone help me rewrite this cmake ?