Implement GIF conversion
This commit is contained in:
@ -3,16 +3,18 @@ project(${TARGET})
|
||||
|
||||
add_subdirectory(vendor/lz4/build/cmake)
|
||||
|
||||
file(GLOB_RECURSE SRC_SOURCE src/**.cpp)
|
||||
file(GLOB_RECURSE SRC_SOURCE src/**.cpp vendor/gif-h/gif.h)
|
||||
|
||||
file(GLOB STB_SOURCE vendor/stb/*.cpp)
|
||||
|
||||
# static
|
||||
add_library(expkg-static STATIC
|
||||
${SRC_SOURCE}
|
||||
vendor/stb/stb_image_write.cpp
|
||||
${STB_SOURCE}
|
||||
)
|
||||
target_link_libraries(expkg-static PRIVATE lz4)
|
||||
|
||||
target_include_directories(expkg-static PRIVATE vendor/stb)
|
||||
target_include_directories(expkg-static PRIVATE vendor/stb vendor/gif-h)
|
||||
|
||||
target_include_directories(expkg-static PUBLIC src)
|
||||
|
||||
@ -20,7 +22,7 @@ target_include_directories(expkg-static PUBLIC src)
|
||||
# shared
|
||||
add_library(expkg-shared SHARED
|
||||
${SRC_SOURCE}
|
||||
vendor/stb/stb_image_write.cpp
|
||||
${STB_SOURCE}
|
||||
)
|
||||
|
||||
set_target_properties(expkg-shared PROPERTIES
|
||||
@ -31,7 +33,7 @@ set_target_properties(expkg-shared PROPERTIES
|
||||
target_link_libraries(expkg-shared PRIVATE lz4)
|
||||
target_compile_definitions(expkg-shared PRIVATE -DPKG_SHARED -DPKG_BUILD_DLL)
|
||||
|
||||
target_include_directories(expkg-shared PRIVATE vendor/stb)
|
||||
target_include_directories(expkg-shared PRIVATE vendor/stb vendor/gif-h)
|
||||
|
||||
target_include_directories(expkg-shared PUBLIC src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user