2020-11-16 14:47:43 +08:00
|
|
|
|
|
|
|
set(lib_name glsl_optimizer)
|
2022-02-17 17:11:17 +08:00
|
|
|
set(target_name dep_${lib_name})
|
2020-11-16 14:47:43 +08:00
|
|
|
|
|
|
|
project(${lib_name})
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
include(../cmake/AXConfigThirdparty.cmake)
|
2020-11-16 14:47:43 +08:00
|
|
|
|
2022-02-17 17:11:17 +08:00
|
|
|
add_library(dep_glcpp_library STATIC IMPORTED GLOBAL)
|
|
|
|
add_library(dep_glsl_optimizer STATIC IMPORTED GLOBAL)
|
|
|
|
add_library(dep_libmesa STATIC IMPORTED GLOBAL)
|
2020-11-16 14:47:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(${target_name} PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include"
|
|
|
|
)
|
|
|
|
|
2022-02-17 17:11:17 +08:00
|
|
|
set_target_properties(dep_glcpp_library PROPERTIES
|
2020-11-16 14:47:43 +08:00
|
|
|
IMPORTED_LOCATION "${platform_spec_path}/libglcpp-library.a"
|
|
|
|
)
|
2022-02-17 17:11:17 +08:00
|
|
|
set_target_properties(dep_glsl_optimizer PROPERTIES
|
2020-11-16 14:47:43 +08:00
|
|
|
IMPORTED_LOCATION "${platform_spec_path}/libglsl_optimizer.a"
|
|
|
|
)
|
2022-02-17 17:11:17 +08:00
|
|
|
set_target_properties(dep_libmesa PROPERTIES
|
2020-11-16 14:47:43 +08:00
|
|
|
IMPORTED_LOCATION "${platform_spec_path}/libmesa.a"
|
|
|
|
)
|