36 lines
819 B
CMake
36 lines
819 B
CMake
|
|
# ============================================================
|
||
|
|
# Core/Asset Tests
|
||
|
|
# ============================================================
|
||
|
|
|
||
|
|
set(ASSET_TEST_SOURCES
|
||
|
|
test_iresource.cpp
|
||
|
|
test_resource_types.cpp
|
||
|
|
test_resource_guid.cpp
|
||
|
|
test_resource_handle.cpp
|
||
|
|
test_resource_cache.cpp
|
||
|
|
test_resource_dependency.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
add_executable(asset_tests ${ASSET_TEST_SOURCES})
|
||
|
|
|
||
|
|
if(MSVC)
|
||
|
|
set_target_properties(asset_tests PROPERTIES
|
||
|
|
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
|
||
|
|
)
|
||
|
|
endif()
|
||
|
|
|
||
|
|
target_link_libraries(asset_tests
|
||
|
|
PRIVATE
|
||
|
|
XCEngine
|
||
|
|
GTest::gtest
|
||
|
|
GTest::gtest_main
|
||
|
|
)
|
||
|
|
|
||
|
|
target_include_directories(asset_tests PRIVATE
|
||
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
||
|
|
${CMAKE_SOURCE_DIR}/tests/fixtures
|
||
|
|
)
|
||
|
|
|
||
|
|
include(GoogleTest)
|
||
|
|
gtest_discover_tests(asset_tests)
|