35 lines
773 B
CMake
35 lines
773 B
CMake
|
|
# ============================================================
|
||
|
|
# Core/IO Tests
|
||
|
|
# ============================================================
|
||
|
|
|
||
|
|
set(IO_TEST_SOURCES
|
||
|
|
test_iresource_loader.cpp
|
||
|
|
test_resource_path.cpp
|
||
|
|
test_resource_filesystem.cpp
|
||
|
|
test_file_archive.cpp
|
||
|
|
test_resource_package.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
add_executable(io_tests ${IO_TEST_SOURCES})
|
||
|
|
|
||
|
|
if(MSVC)
|
||
|
|
set_target_properties(io_tests PROPERTIES
|
||
|
|
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
|
||
|
|
)
|
||
|
|
endif()
|
||
|
|
|
||
|
|
target_link_libraries(io_tests
|
||
|
|
PRIVATE
|
||
|
|
XCEngine
|
||
|
|
GTest::gtest
|
||
|
|
GTest::gtest_main
|
||
|
|
)
|
||
|
|
|
||
|
|
target_include_directories(io_tests PRIVATE
|
||
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
||
|
|
${CMAKE_SOURCE_DIR}/tests/fixtures
|
||
|
|
)
|
||
|
|
|
||
|
|
include(GoogleTest)
|
||
|
|
gtest_discover_tests(io_tests)
|