Files
XCEngine/tests/memory/CMakeLists.txt
2026-03-29 01:36:53 +08:00

33 lines
748 B
CMake

# ============================================================
# Memory Library Tests
# ============================================================
set(MEMORY_TEST_SOURCES
test_memory_manager.cpp
test_linear_allocator.cpp
test_pool_allocator.cpp
)
add_executable(memory_tests ${MEMORY_TEST_SOURCES})
if(MSVC)
set_target_properties(memory_tests PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
)
endif()
target_link_libraries(memory_tests
PRIVATE
XCEngine
GTest::gtest
GTest::gtest_main
)
target_include_directories(memory_tests PRIVATE
${CMAKE_SOURCE_DIR}/engine/include
${CMAKE_SOURCE_DIR}/tests/Fixtures
)
include(GoogleTest)
gtest_discover_tests(memory_tests)