pmalloc is a executable-memory allocator for Windows.
I have two ideas.
At first, follow the Visual Studio GUI to install the library.
Or, using the "Developer Command Prompt for VS", execute the following commands to install the software:
cd pmalloc
cmake --preset [x86-debug|x86-release|x64-debug|x64-release]
cmake --build out/build/[preset-name]
cmake --install out/build/[preset-name]Then, move created files to the pmalloc directory in the search target directory of cmake's find_package command.
And then add the following to your CMakeLists.txt:
find_package(pmalloc)
target_link_library(${PROJECT_NAME} PRIVATE pmalloc::pmalloc)At first, add it as a submodule as follows:
cd (your project)
git init
mkdir deps/
git submodule add https://github.com/Yamanekazuma/pmalloc.git deps/pmallocAnd then add the following to your CMakeLists.txt:
add_subdirectory(deps/pmalloc EXCLUDE_FROM_ALL)
target_link_library(${PROJECT_NAME} PRIVATE pmalloc)- Copyright 2023 Yamanekazuma
- Licensed under the MIT License.