1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-09 01:07:16 +01:00
SqMod/module/Vendor/TinyDir/CMakeLists.txt
2020-08-19 16:49:45 +03:00

9 lines
337 B
CMake

# Create the TinyDir library
add_library(TinyDir STATIC include/tinydir.h tinydir.c)
# Library includes
target_include_directories(TinyDir PRIVATE ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(TinyDir PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
# Enable LTO
if (LTO_ENABLED)
target_link_libraries(TinyDir PRIVATE -flto)
endif()