init
This commit is contained in:
38
expkg/CMakeLists.txt
Normal file
38
expkg/CMakeLists.txt
Normal file
@ -0,0 +1,38 @@
|
||||
set(TARGET expkg)
|
||||
project(${TARGET})
|
||||
|
||||
add_subdirectory(vendor/lz4/build/cmake)
|
||||
|
||||
file(GLOB_RECURSE SRC_SOURCE src/**.cpp)
|
||||
|
||||
# static
|
||||
add_library(expkg-static STATIC
|
||||
${SRC_SOURCE}
|
||||
vendor/stb/stb_image_write.cpp
|
||||
)
|
||||
target_link_libraries(expkg-static PRIVATE lz4)
|
||||
|
||||
target_include_directories(expkg-static PRIVATE vendor/stb)
|
||||
|
||||
target_include_directories(expkg-static PUBLIC src)
|
||||
|
||||
|
||||
# shared
|
||||
add_library(expkg-shared SHARED
|
||||
${SRC_SOURCE}
|
||||
vendor/stb/stb_image_write.cpp
|
||||
)
|
||||
|
||||
set_target_properties(expkg-shared PROPERTIES
|
||||
OUTPUT_NAME "expkg"
|
||||
PREFIX ""
|
||||
)
|
||||
|
||||
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 PUBLIC src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user