mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 09:59:54 +02:00
tell cmake we are fine ignoring generated for CMP0071
This commit is contained in:
parent
0d7d382540
commit
2158acecf4
2 changed files with 10 additions and 4 deletions
|
@ -318,13 +318,13 @@ if (APPLE)
|
||||||
else()
|
else()
|
||||||
# copy the resources files beside the executable
|
# copy the resources files beside the executable
|
||||||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
|
||||||
"${RESOURCES_RCC}"
|
"${RESOURCES_RCC}"
|
||||||
"$<TARGET_FILE_DIR:interface>"
|
"$<TARGET_FILE_DIR:interface>"
|
||||||
# FIXME, the edit script code loads HTML from the scripts folder
|
# FIXME, the edit script code loads HTML from the scripts folder
|
||||||
# which in turn relies on CSS that refers to the fonts. In theory
|
# which in turn relies on CSS that refers to the fonts. In theory
|
||||||
# we should be able to modify the CSS to reference the QRC path to
|
# we should be able to modify the CSS to reference the QRC path to
|
||||||
# the ttf files, but doing so generates a CORS policy violation,
|
# the ttf files, but doing so generates a CORS policy violation,
|
||||||
# so we have to retain a copy of the fonts outside of the resources binary
|
# so we have to retain a copy of the fonts outside of the resources binary
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
||||||
"${PROJECT_SOURCE_DIR}/resources/fonts"
|
"${PROJECT_SOURCE_DIR}/resources/fonts"
|
||||||
|
@ -379,3 +379,6 @@ endif()
|
||||||
add_dependency_external_projects(GifCreator)
|
add_dependency_external_projects(GifCreator)
|
||||||
find_package(GifCreator REQUIRED)
|
find_package(GifCreator REQUIRED)
|
||||||
target_include_directories(${TARGET_NAME} PUBLIC ${GIFCREATOR_INCLUDE_DIRS})
|
target_include_directories(${TARGET_NAME} PUBLIC ${GIFCREATOR_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
# tell CMake to exclude ui_console.h for policy CMP0071
|
||||||
|
set_property(SOURCE ui_console.h PROPERTY SKIP_AUTOMOC ON)
|
||||||
|
|
|
@ -8,6 +8,9 @@ include_hifi_library_headers(audio)
|
||||||
include_hifi_library_headers(networking)
|
include_hifi_library_headers(networking)
|
||||||
include_hifi_library_headers(octree)
|
include_hifi_library_headers(octree)
|
||||||
|
|
||||||
|
# tell CMake to exclude qrc_fonts.cpp for policy CMP0071
|
||||||
|
set_property(SOURCE qrc_fonts.cpp PROPERTY SKIP_AUTOMOC ON)
|
||||||
|
|
||||||
if (NOT ANDROID)
|
if (NOT ANDROID)
|
||||||
target_nsight()
|
target_nsight()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Reference in a new issue