chore: switch to CMake build system instead of native Visual Studio project

This commit is contained in:
2024-08-15 22:20:51 +08:00
parent da575e42f5
commit afa06339b2
26 changed files with 3349 additions and 1794 deletions

View File

@ -0,0 +1,14 @@
# Check stb path variable
if (NOT DEFINED STB_IMAGE_PATH)
message(FATAL_ERROR "You must set STB_IMAGE_PATH variable to the root directory of std-image repository.")
endif()
# Add library
add_library(stb-image INTERFACE IMPORTED)
# Add alias for it
add_library(stb::stb-image ALIAS stb-image)
# Setup header files
set_target_properties(stb-image PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES
"${STB_IMAGE_PATH}"
)