diff --git a/CMakeLists.txt b/CMakeLists.txt index 71e979877..1ab88ef22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,7 +357,8 @@ if (HB_HAVE_ICU) list(APPEND project_headers ${PROJECT_SOURCE_DIR}/src/hb-icu.h) - list(APPEND THIRD_PARTY_LIBS ICU::uc) + get_target_property(ICU_UC_LIBRARY ICU::uc IMPORTED_LOCATION) + list(APPEND THIRD_PARTY_LIBS ${ICU_UC_LIBRARY}) endif () if (APPLE AND HB_HAVE_CORETEXT) @@ -1060,6 +1061,15 @@ if (HB_BUILD_UTILS) "-framework Metal" "-framework QuartzCore" "-framework Foundation" "-framework AppKit") endif () + if (WIN32) + find_library(D3D11_LIBRARY NAMES d3d11) + find_library(D3DCOMPILER_LIBRARY NAMES d3dcompiler) + target_sources(hb-gpu PRIVATE + ${PROJECT_SOURCE_DIR}/util/gpu/demo-renderer-d3d11.cc) + target_link_libraries(hb-gpu + "${D3D11_LIBRARY}" + "${D3DCOMPILER_LIBRARY}") + endif () endif () endif () endif ()