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)