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

32 lines
721 B
CMake
Raw Normal View History

# ============================================================
# 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"
)
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
)
include(GoogleTest)
gtest_discover_tests(material_tests)