mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-09 01:07:16 +01:00
9 lines
337 B
CMake
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() |