mirror of https://github.com/axmolengine/axmol.git
23 lines
577 B
CMake
23 lines
577 B
CMake
|
|
set(lib_name webp)
|
|
set(target_name ${lib_name})
|
|
|
|
project(${lib_name})
|
|
include(../cmake/CocosExternalConfig.cmake)
|
|
|
|
FILE(GLOB_RECURSE ${target_name}_src *.h;*.c)
|
|
|
|
add_library(${target_name} STATIC
|
|
${${target_name}_src}
|
|
)
|
|
|
|
target_include_directories(${target_name} PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
|
|
target_include_directories(${target_name} PUBLIC "${CMAKE_CURRENT_LIST_DIR}/src/webp")
|
|
|
|
set_target_properties(${target_name}
|
|
PROPERTIES
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
FOLDER "External"
|
|
)
|