Browse Source

enable freetype in cmake

pull/357/head
rghvdberg GitHub 3 years ago
parent
commit
116fee0381
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      cmake/DPF-plugin.cmake

+ 8
- 0
cmake/DPF-plugin.cmake View File

@@ -551,6 +551,14 @@ function(dpf__add_dgl_opengl)

target_include_directories(dgl-opengl PUBLIC "${OPENGL_INCLUDE_DIR}")
target_link_libraries(dgl-opengl PRIVATE dgl-opengl-definitions "${OPENGL_gl_LIBRARY}")
if(USE_NANOVG_FREETYPE)
find_package(Freetype REQUIRED)
target_include_directories(dgl-opengl PUBLIC "${FREETYPE_INCLUDE_DIRS}")
target_link_libraries(dgl-opengl PUBLIC "${FREETYPE_LIBRARIES}")
add_definitions(-DFONS_USE_FREETYPE)
endif()
endfunction()

# dpf__add_plugin_specific_ui_sources


Loading…
Cancel
Save