axmol/3rdparty/angle/CMakeLists.txt

31 lines
795 B
CMake
Raw Normal View History

set(lib_name angle)
project(${lib_name})
2024-01-19 20:33:40 +08:00
_1kfetch_dist(angle)
if(WINRT)
# -----macro: set openssl sub target-----
macro(set_angle_sub_target sub_target_name sub_lib_name)
add_library(${sub_target_name} SHARED IMPORTED GLOBAL)
set_target_properties(${sub_target_name} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${angle_INC_DIR}"
)
set_target_properties(${sub_target_name} PROPERTIES
IMPORTED_LOCATION "${angle_LIB_DIR}/lib${sub_lib_name}.dll"
IMPORTED_IMPLIB "${angle_LIB_DIR}/lib${sub_lib_name}.dll.lib"
)
endmacro()
# -----sub target 1: GLESv2-----
set(target_name angle::GLESv2 GLESv2)
set_angle_sub_target(${target_name})
# -----sub target 2: EGL-----
set(target_name angle::EGL EGL)
set_angle_sub_target(${target_name})
endif()