axmol/thirdparty/jpeg-turbo/CMakeLists.txt

24 lines
547 B
CMake
Raw Normal View History

2020-11-16 14:47:43 +08:00
2022-08-13 09:51:21 +08:00
set(lib_name jpeg-turbo)
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})
2020-11-16 14:47:43 +08:00
include(AXPlatform)
2020-11-16 14:47:43 +08:00
add_library(${target_name} 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"
)
2020-11-16 14:47:43 +08:00
if(WINDOWS)
set_target_properties(${target_name} PROPERTIES
IMPORTED_LOCATION "${platform_spec_path}/jpeg-static.lib"
)
2020-11-16 14:47:43 +08:00
else()
set_target_properties(${target_name} PROPERTIES
IMPORTED_LOCATION "${platform_spec_path}/libjpeg.a"
)
2020-11-16 14:47:43 +08:00
endif()