LYN-2524: Adding more files to CMake install to help AP run from SDK. Fixes an issue configuring an external project.
This commit is contained in:
+6
-4
@@ -63,10 +63,12 @@ function(ly_get_absolute_pal_filename out_name in_name)
|
||||
set(full_name ${in_name})
|
||||
if (NOT EXISTS ${full_name})
|
||||
string(REGEX MATCH "${repo_dir}/(.*)/Platform/([^/]*)/?(.*)$" match ${full_name})
|
||||
if(${CMAKE_MATCH_2} IN_LIST PAL_RESTRICTED_PLATFORMS)
|
||||
set(full_name ${repo_dir}/restricted/${CMAKE_MATCH_2}/${CMAKE_MATCH_1})
|
||||
if(NOT "${CMAKE_MATCH_3}" STREQUAL "")
|
||||
string(APPEND full_name "/" ${CMAKE_MATCH_3})
|
||||
if(PAL_RESTRICTED_PLATFORMS)
|
||||
if("${CMAKE_MATCH_2}" IN_LIST PAL_RESTRICTED_PLATFORMS)
|
||||
set(full_name ${repo_dir}/restricted/${CMAKE_MATCH_2}/${CMAKE_MATCH_1})
|
||||
if(NOT "${CMAKE_MATCH_3}" STREQUAL "")
|
||||
string(APPEND full_name "/" ${CMAKE_MATCH_3})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -184,7 +184,7 @@ function(ly_setup_cmake_install)
|
||||
|
||||
install(DIRECTORY "${CMAKE_SOURCE_DIR}/cmake"
|
||||
DESTINATION .
|
||||
REGEX "Findo3de.cmake" EXCLUDE
|
||||
REGEX "Findo3de.cmake" EXCLUDE
|
||||
REGEX "Platform\/.*\/BuiltInPackages_.*\.cmake" EXCLUDE
|
||||
)
|
||||
install(
|
||||
@@ -265,6 +265,44 @@ function(ly_setup_others)
|
||||
REGEX "runtime" EXCLUDE
|
||||
)
|
||||
|
||||
# Registry
|
||||
install(DIRECTORY
|
||||
${CMAKE_CURRENT_BINARY_DIR}/bin/$<CONFIG>/Registry
|
||||
DESTINATION ./bin/$<CONFIG>
|
||||
)
|
||||
install(DIRECTORY
|
||||
# This one will change soon, Engine/Registry files will be relocated to Registry
|
||||
${CMAKE_SOURCE_DIR}/Engine/Registry
|
||||
DESTINATION ./Engine
|
||||
)
|
||||
install(FILES
|
||||
${CMAKE_SOURCE_DIR}/AssetProcessorPlatformConfig.setreg
|
||||
DESTINATION ./Registry
|
||||
)
|
||||
|
||||
# Qt Binaries
|
||||
set(QT_BIN_DIRS bearer iconengines imageformats platforms styles translations)
|
||||
foreach(qt_dir ${QT_BIN_DIRS})
|
||||
install(DIRECTORY
|
||||
${CMAKE_CURRENT_BINARY_DIR}/bin/$<CONFIG>/${qt_dir}
|
||||
DESTINATION ./bin/$<CONFIG>
|
||||
)
|
||||
endforeach()
|
||||
|
||||
# Templates
|
||||
install(DIRECTORY
|
||||
${CMAKE_SOURCE_DIR}/Templates
|
||||
DESTINATION .
|
||||
)
|
||||
|
||||
# Misc
|
||||
install(FILES
|
||||
${CMAKE_SOURCE_DIR}/ctest_pytest.ini
|
||||
${CMAKE_SOURCE_DIR}/LICENSE.txt
|
||||
${CMAKE_SOURCE_DIR}/README.md
|
||||
DESTINATION .
|
||||
)
|
||||
|
||||
endfunction()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user