mirror of
https://github.com/Vita3K/Vita3K.git
synced 2025-04-02 11:02:10 -04:00
26 lines
533 B
CMake
26 lines
533 B
CMake
add_library(
|
|
mem
|
|
STATIC
|
|
include/mem/allocator.h
|
|
include/mem/atomic.h
|
|
include/mem/functions.h
|
|
include/mem/mempool.h
|
|
include/mem/block.h
|
|
include/mem/ptr.h
|
|
include/mem/state.h
|
|
include/mem/util.h
|
|
src/allocator.cpp
|
|
src/mem.cpp
|
|
)
|
|
|
|
target_include_directories(mem PUBLIC include)
|
|
target_link_libraries(mem PUBLIC util)
|
|
|
|
add_executable(
|
|
mem-tests
|
|
tests/allocator_tests.cpp
|
|
)
|
|
|
|
target_include_directories(mem-tests PRIVATE include)
|
|
target_link_libraries(mem-tests PRIVATE mem googletest util)
|
|
add_test(NAME mem COMMAND mem-tests)
|