From d2f3382ab5df8cf8d835d857e3e2966215562d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=90=89=E6=9E=97?= <798080536@qq.com> Date: Tue, 15 Mar 2022 17:01:22 +0800 Subject: [PATCH] add freetype (#227) --- android/CMakeLists.txt | 1 + ios-m1-simulator/CMakeLists.txt | 1 + ios/CMakeLists.txt | 1 + mac/CMakeLists.txt | 1 + win32/CMakeLists.txt | 1 + win64/CMakeLists.txt | 1 + 6 files changed, 6 insertions(+) diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index dfb6221d..c7445df3 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -7,6 +7,7 @@ set_target_properties(crypto PROPERTIES add_library(freetype STATIC IMPORTED GLOBAL) set_target_properties(freetype PROPERTIES IMPORTED_LOCATION ${platform_spec_path}/libfreetype.a + INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/freetype ) add_library(jpeg STATIC IMPORTED GLOBAL) diff --git a/ios-m1-simulator/CMakeLists.txt b/ios-m1-simulator/CMakeLists.txt index f56b4bde..5f8583b5 100644 --- a/ios-m1-simulator/CMakeLists.txt +++ b/ios-m1-simulator/CMakeLists.txt @@ -7,6 +7,7 @@ set_target_properties(crypto PROPERTIES add_library(freetype STATIC IMPORTED GLOBAL) set_target_properties(freetype PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libfreetype.a + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/include/freetype ) add_library(jpeg STATIC IMPORTED GLOBAL) diff --git a/ios/CMakeLists.txt b/ios/CMakeLists.txt index e7bccfba..060a0b88 100644 --- a/ios/CMakeLists.txt +++ b/ios/CMakeLists.txt @@ -7,6 +7,7 @@ set_target_properties(crypto PROPERTIES add_library(freetype STATIC IMPORTED GLOBAL) set_target_properties(freetype PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libfreetype.a + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/include/freetype ) add_library(jpeg STATIC IMPORTED GLOBAL) diff --git a/mac/CMakeLists.txt b/mac/CMakeLists.txt index 29b34da0..b6bb1705 100644 --- a/mac/CMakeLists.txt +++ b/mac/CMakeLists.txt @@ -12,6 +12,7 @@ set_target_properties(curl PROPERTIES add_library(freetype STATIC IMPORTED GLOBAL) set_target_properties(freetype PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/libfreetype.a + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/include/freetype ) add_library(glfw3 STATIC IMPORTED GLOBAL) diff --git a/win32/CMakeLists.txt b/win32/CMakeLists.txt index 39efe5ed..172d52d6 100644 --- a/win32/CMakeLists.txt +++ b/win32/CMakeLists.txt @@ -20,6 +20,7 @@ add_library(freetype STATIC IMPORTED GLOBAL) set_target_properties(freetype PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/freetype.lib + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/include/freetype ) add_library(glew32 SHARED IMPORTED GLOBAL) diff --git a/win64/CMakeLists.txt b/win64/CMakeLists.txt index 0d585d9e..45ae9c6d 100644 --- a/win64/CMakeLists.txt +++ b/win64/CMakeLists.txt @@ -20,6 +20,7 @@ add_library(freetype STATIC IMPORTED GLOBAL) set_target_properties(freetype PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/freetype.lib + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/include/freetype ) add_library(glew32 SHARED IMPORTED GLOBAL)