Skip to content

Commit

Permalink
Works on windows now
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkit committed Sep 26, 2019
1 parent e73d88d commit f59712c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,24 +287,28 @@ endif()
# COPY_FILES("${CEF_TARGET}" "${CEF_BINARY_FILES}" "${CEF_BINARY_DIR}" $<TARGET_FILE_DIR:${CEF_TARGET}>)
#COPY_FILES("${CEF_TARGET}" "${CEF_RESOURCE_FILES}" "${CEF_RESOURCE_DIR}" $<TARGET_FILE_DIR:${CEF_TARGET}>)
if(WIN32)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SDL/build/install/bin/SDL2${build_type2}.dll)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SDL/build/install/bin/SDL2${build_type2}.dll DESTINATION .)
endif()
FOREACH(file ${CEF_BINARY_FILES})
if(NOT ${file} STREQUAL "swiftshader")
if(${file} STREQUAL "d3dcompiler_43.dll")
message("Not installing ${file}")
else()
install(FILES ${CEF_BINARY_DIR}/${file})
message("Install :${CEF_BINARY_DIR}/${file}")
install(FILES "${CEF_BINARY_DIR}/${file}" DESTINATION .)
endif()
else()
install(DIRECTORY ${CEF_BINARY_DIR}/${file})
message("Install :${CEF_BINARY_DIR}/${file}")
install(DIRECTORY "${CEF_BINARY_DIR}/${file}"DESTINATION .)
endif()
ENDFOREACH()
FOREACH(file ${CEF_RESOURCE_FILES})
if(NOT ${file} STREQUAL "locales")
install(FILES ${CEF_RESOURCE_DIR}/${file})
message("Install :${CEF_RESOURCE_DIR}/${file}")
install(FILES "${CEF_RESOURCE_DIR}/${file}" DESTINATION .)
else()
install(DIRECTORY ${CEF_RESOURCE_DIR}/${file})
message("Install :${CEF_RESOURCE_DIR}/${file}")
install(DIRECTORY "${CEF_RESOURCE_DIR}/${file}" DESTINATION .)
endif()
ENDFOREACH()

Expand Down

0 comments on commit f59712c

Please sign in to comment.