mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-28 03:27:20 +01:00
6a637cfc22
Instead, add the includes to the target, which only libraries that link it in can actually see.
32 lines
412 B
CMake
32 lines
412 B
CMake
add_library(png STATIC
|
|
png.h
|
|
pngconf.h
|
|
png.c
|
|
pngerror.c
|
|
pngget.c
|
|
pngmem.c
|
|
pngpread.c
|
|
pngread.c
|
|
pngrio.c
|
|
pngrtran.c
|
|
pngrutil.c
|
|
pngset.c
|
|
pngtrans.c
|
|
pngwio.c
|
|
pngwrite.c
|
|
pngwtran.c
|
|
pngwutil.c
|
|
)
|
|
|
|
target_include_directories(png
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
target_compile_options(png
|
|
PRIVATE
|
|
-Wno-self-assign
|
|
)
|
|
endif()
|