kinect/codes/Azure-Kinect-Sensor-SDK/extern/libyuv/CMakeLists.txt

20 lines
579 B
CMake
Raw Normal View History

2024-03-06 18:05:53 +00:00
if (NOT TARGET yuv)
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
add_compile_options("/D_CRT_SECURE_NO_WARNINGS")
endif()
set(CMAKE_IMPORT_LIBRARY_SUFFIX_CACHED ${CMAKE_IMPORT_LIBRARY_SUFFIX})
unset(CMAKE_IMPORT_LIBRARY_SUFFIX)
add_subdirectory(src EXCLUDE_FROM_ALL)
set(CMAKE_IMPORT_LIBRARY_SUFFIX ${CMAKE_IMPORT_LIBRARY_SUFFIX_CACHED})
target_include_directories(yuv PUBLIC
src
src/include
)
else()
message(STATUS "yuv is already a target. Skipping adding it twice")
endif()
add_library(libyuv::libyuv ALIAS yuv)