diff --git a/tests/cpp-tests/CMakeLists.txt b/tests/cpp-tests/CMakeLists.txt index 5c40d70ff6..ddf0503a47 100644 --- a/tests/cpp-tests/CMakeLists.txt +++ b/tests/cpp-tests/CMakeLists.txt @@ -433,6 +433,7 @@ if(WINDOWS) set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/Classes/precheader.cpp" PROPERTIES COMPILE_FLAGS "/Ycprecheader.h") endif() +# Copy win32 angle binaries if(WIN32) add_custom_command(TARGET ${APP_NAME} COMMAND ${CMAKE_COMMAND} -E copy_if_different diff --git a/tests/lua-tests/project/CMakeLists.txt b/tests/lua-tests/project/CMakeLists.txt index f37f3dc623..f8f3cd27ee 100644 --- a/tests/lua-tests/project/CMakeLists.txt +++ b/tests/lua-tests/project/CMakeLists.txt @@ -147,3 +147,14 @@ if(LINUX OR WINDOWS) cocos_copy_lua_scripts(${APP_NAME} ${res_src_folders} ${APP_RES_DIR}/src ) cocos_copy_lua_scripts(${APP_NAME} ${res_script_folders} ${APP_RES_DIR}/src/cocos) endif() + +# Copy win32 angle binaries +if(WIN32) + add_custom_command(TARGET ${APP_NAME} + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${COCOS2DX_ROOT_PATH}/external/angle/prebuilt/win32/libGLESv2.dll + ${COCOS2DX_ROOT_PATH}/external/angle/prebuilt/win32/libEGL.dll + ${COCOS2DX_ROOT_PATH}/external/angle/prebuilt/win32/d3dcompiler_47.dll + $ + ) +endif()