11 lines
333 B
CMake
11 lines
333 B
CMake
# header-only: interface target exposing the vendor/ root so consumers
|
|
# can include via <stb/stb_image.h>
|
|
add_library(stb INTERFACE)
|
|
add_library(vendor::stb ALIAS stb)
|
|
|
|
target_include_directories(stb INTERFACE ..)
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
target_compile_options(stb INTERFACE -Wno-maybe-uninitialized)
|
|
endif()
|