mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
14 lines
547 B
CMake
14 lines
547 B
CMake
|
# 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()
|