/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-23.4
Code/BuildSystem/CMake/FindEzEmbree.cmake
31 строка
970 B
Jan Krassnigg
Added .gitattributes file to enforce consistent line-endings (#872)
16 фев 2023, 20:57
Не верифицирован
16 фев 2023, 20:57
565458b
Код
Авторство
О чём код?
# find the folder in which Embree is located # early out, if this target has been created before if(TARGET EzEmbree::EzEmbree) return() endif() find_path(EZ_EMBREE_DIR include/embree3/rtcore.h PATHS ${CMAKE_SOURCE_DIR}/Code/ThirdParty/embree ) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(EMBREE_LIB_PATH "${EZ_EMBREE_DIR}/vc141win64") else() set(EMBREE_LIB_PATH "${EZ_EMBREE_DIR}/vc141win32") endif() include(FindPackageHandleStandardArgs) find_package_handle_standard_args(EzEmbree DEFAULT_MSG EZ_EMBREE_DIR) if(EZEMBREE_FOUND) add_library(EzEmbree::EzEmbree SHARED IMPORTED) set_target_properties(EzEmbree::EzEmbree PROPERTIES IMPORTED_LOCATION "${EMBREE_LIB_PATH}/embree3.dll") set_target_properties(EzEmbree::EzEmbree PROPERTIES IMPORTED_IMPLIB "${EMBREE_LIB_PATH}/embree3.lib") set_target_properties(EzEmbree::EzEmbree PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${EZ_EMBREE_DIR}/include") endif() mark_as_advanced(FORCE EZ_EMBREE_DIR) unset(EMBREE_LIB_PATH)