Skip to content

Commit

Permalink
Define Freetype::Freetype cmake target when not found
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Dec 31, 2018
1 parent 89f0f12 commit 55e5f05
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ if(Boost_FOUND AND NOT TARGET Boost::boost)
PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS})
endif(Boost_FOUND AND NOT TARGET Boost::boost)

if(UNIX AND FREETYPE_FOUND AND NOT TARGET Freetype::Freetype)
add_library(Freetype::Freetype UNKNOWN IMPORTED)
set_target_properties(Freetype::Freetype PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${FREETYPE_INCLUDE_DIRS}")
set_target_properties(Freetype::Freetype PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
INTERFACE_LINK_LIBRARIES "${FREETYPE_LIBRARIES}")
endif(UNIX AND FREETYPE_FOUND AND NOT TARGET Freetype::Freetype)

add_subdirectory(extern/glad)
add_subdirectory(src/backend/common)
add_subdirectory(src/backend/glsl_shaders)
Expand Down

0 comments on commit 55e5f05

Please # to comment.