-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[new renderer] add mac&ios cmake support (#342)
* add mac&ios cmake support * remove unused condition
- Loading branch information
1 parent
3b0d6eb
commit a8b163e
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.6) | ||
|
||
set(lib_name glsl_optimizer) | ||
set(target_name ext_${lib_name}) | ||
|
||
project(${lib_name}) | ||
|
||
include(../cmake/CocosExternalConfig.cmake) | ||
|
||
add_library(ext_glcpp_library STATIC IMPORTED GLOBAL) | ||
add_library(ext_glsl_optimizer STATIC IMPORTED GLOBAL) | ||
add_library(ext_libmesa STATIC IMPORTED GLOBAL) | ||
|
||
|
||
set_target_properties(${target_name} PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include" | ||
) | ||
|
||
set_target_properties(ext_glcpp_library PROPERTIES | ||
IMPORTED_LOCATION "${platform_spec_path}/libglcpp-library.a" | ||
) | ||
set_target_properties(ext_glsl_optimizer PROPERTIES | ||
IMPORTED_LOCATION "${platform_spec_path}/libglsl_optimizer.a" | ||
) | ||
set_target_properties(ext_libmesa PROPERTIES | ||
IMPORTED_LOCATION "${platform_spec_path}/libmesa.a" | ||
) |