Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a371963

Browse files
committed
Avoid many copies of stb_image.h and stb_image_write.h
1 parent eaeeda8 commit a371963

File tree

8 files changed

+18
-16737
lines changed

8 files changed

+18
-16737
lines changed

example/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ if (ENABLE_DECODERS)
2525
scan_image.cpp
2626
)
2727

28+
target_include_directories (scan_image
29+
PRIVATE ../thirdparty/stb
30+
)
31+
2832
target_compile_options (scan_image PRIVATE -DLODEPNG_NO_COMPILE_ENCODER)
2933

3034
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
@@ -42,6 +46,10 @@ if (ENABLE_ENCODERS)
4246
generate_image.cpp
4347
)
4448

49+
target_include_directories (generate_image
50+
PRIVATE ../thirdparty/stb
51+
)
52+
4553
target_compile_options (generate_image PRIVATE -DLODEPNG_NO_COMPILE_DECODER)
4654

4755
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")

0 commit comments

Comments
 (0)