Make freetype fully optional
This commit is contained in:
parent
013212e582
commit
5042fbbf7e
1 changed files with 1 additions and 2 deletions
|
|
@ -1,11 +1,10 @@
|
|||
find_package(Freetype REQUIRED)
|
||||
|
||||
file(GLOB_RECURSE PSEMEK_FONTS_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "include/*.hpp")
|
||||
file(GLOB_RECURSE PSEMEK_FONTS_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "source/*.cpp")
|
||||
|
||||
list(REMOVE_ITEM PSEMEK_FONTS_SOURCES "source/freetype.cpp")
|
||||
|
||||
if(PSEMEK_USE_FREETYPE)
|
||||
find_package(Freetype REQUIRED)
|
||||
list(APPEND PSEMEK_FONTS_SOURCES "source/freetype.cpp")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue