mirror of https://github.com/axmolengine/axmol.git
24 lines
566 B
CMake
24 lines
566 B
CMake
|
|
set(lib_name jpeg)
|
|
set(target_name dep_${lib_name})
|
|
|
|
project(${lib_name})
|
|
|
|
include(../cmake/AxisThirdpartyConfig.cmake)
|
|
|
|
add_library(${target_name} STATIC IMPORTED GLOBAL)
|
|
|
|
set_target_properties(${target_name} PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include"
|
|
)
|
|
|
|
if(WINDOWS)
|
|
set_target_properties(${target_name} PROPERTIES
|
|
IMPORTED_LOCATION "${platform_spec_path}/jpeg-static.lib"
|
|
)
|
|
else()
|
|
set_target_properties(${target_name} PROPERTIES
|
|
IMPORTED_LOCATION "${platform_spec_path}/libjpeg.a"
|
|
)
|
|
endif()
|