1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00
SqMod/vendor/RPMalloc/CMakeLists.txt

14 lines
547 B
CMake
Raw Normal View History

# Create library
add_library(RPMalloc STATIC include/rpmalloc.h rpmalloc.c)
# Configure include folders
target_include_directories(RPMalloc PRIVATE ${CMAKE_CURRENT_LIST_DIR})
target_include_directories(RPMalloc PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
# Configure macro options
target_compile_definitions(RPMalloc PRIVATE _WIN32_WINNT=0x0601)
# Debug options
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_definitions(RPMalloc PUBLIC _DEBUG ENABLE_VALIDATE_ARGS=1)
else()
target_compile_definitions(RPMalloc PUBLIC NDEBUG)
endif()