stuff-from-scratch/test/fonts/CMakeLists.txt

26 lines
490 B
CMake
Raw Normal View History

2022-11-30 18:28:50 +00:00
set(PLATFORM_UNIT_TEST_FILES)
if(UNIX)
find_package(Freetype QUIET)
if(Freetype_FOUND)
set(PLATFORM_UNIT_TEST_FILES
fonts/TestFreeTypeFontEngine.cpp
)
endif()
else()
set(PLATFORM_UNIT_TEST_FILES
fonts/TestDirectWriteFontEngine.cpp
)
2022-11-30 18:28:50 +00:00
endif()
set(FONTS_UNIT_TEST_FILES
fonts/TestFontReader.cpp
${PLATFORM_UNIT_TEST_FILES}
PARENT_SCOPE
)
set(FONTS_UNIT_TEST_DEPENDENCIES
fonts
PARENT_SCOPE
)