mirror of https://github.com/axmolengine/axmol.git
24 lines
567 B
CMake
24 lines
567 B
CMake
|
|
set(lib_name jpeg-turbo)
|
|
set(target_name dep_${lib_name})
|
|
|
|
project(${lib_name})
|
|
|
|
_1kfetch_dist(jpeg-turbo "${PARENT_DIRECTORY}/_deps")
|
|
|
|
add_library(${target_name} STATIC IMPORTED GLOBAL)
|
|
|
|
set_target_properties(${target_name} PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${jpeg-turbo_INC_DIR}"
|
|
)
|
|
|
|
if(WINDOWS)
|
|
set_target_properties(${target_name} PROPERTIES
|
|
IMPORTED_LOCATION "${jpeg-turbo_LIB_DIR}/jpeg-static.lib"
|
|
)
|
|
else()
|
|
set_target_properties(${target_name} PROPERTIES
|
|
IMPORTED_LOCATION "${jpeg-turbo_LIB_DIR}/libjpeg.a"
|
|
)
|
|
endif()
|