1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/module/Vendor/PUGIXML/CMakeLists.txt

11 lines
455 B
CMake
Raw Normal View History

# Create library
add_library(PUGIXML STATIC include/pugiconfig.hpp include/pugixml.hpp pugixml.cpp)
# Configure include folders
target_include_directories(PUGIXML PRIVATE ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(PUGIXML PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
2020-08-19 15:49:45 +02:00
# Configure macro options
target_compile_definitions(PUGIXML PRIVATE PUGIXML_NO_EXCEPTIONS=1)
# Enable LTO
if (LTO_ENABLED)
target_link_libraries(PUGIXML PRIVATE -flto)
endif()