Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions 3rdparty/stb_image_wrapper.cpp

This file was deleted.

10 changes: 7 additions & 3 deletions cmake/stb.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
include_guard()

function(ppc_link_stb exec_func_lib)
add_library(stb_image STATIC
${CMAKE_SOURCE_DIR}/3rdparty/stb_image_wrapper.cpp)
target_include_directories(stb_image PUBLIC ${CMAKE_SOURCE_DIR}/3rdparty/stb)
set(stb_image_header ${CMAKE_SOURCE_DIR}/3rdparty/stb/stb_image.h)

add_library(stb_image STATIC ${stb_image_header})
set_source_files_properties(${stb_image_header} PROPERTIES LANGUAGE C)
set_target_properties(stb_image PROPERTIES EXPORT_COMPILE_COMMANDS OFF)
target_compile_definitions(stb_image PRIVATE STB_IMAGE_IMPLEMENTATION)
target_include_directories(stb_image PUBLIC ${CMAKE_SOURCE_DIR}/3rdparty)
target_link_libraries(${exec_func_lib} PUBLIC stb_image)
endfunction()
Loading