Files
XCEngine/tests/Resources/Material/CMakeLists.txt

37 lines
897 B
CMake

# ============================================================
# Material Tests
# ============================================================
set(MATERIAL_TEST_SOURCES
test_material.cpp
test_material_loader.cpp
)
add_executable(material_tests ${MATERIAL_TEST_SOURCES})
if(MSVC)
set_target_properties(material_tests PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:libcmt.lib"
)
target_compile_options(material_tests PRIVATE /FS)
endif()
target_link_libraries(material_tests
PRIVATE
XCEngine
GTest::gtest
GTest::gtest_main
)
target_include_directories(material_tests PRIVATE
${CMAKE_SOURCE_DIR}/engine/include
${CMAKE_SOURCE_DIR}/tests/Fixtures
)
target_compile_definitions(material_tests PRIVATE
XCENGINE_TEST_FIXTURES_DIR="${CMAKE_SOURCE_DIR}/tests/Fixtures"
)
include(GoogleTest)
gtest_discover_tests(material_tests)