mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Rely on imported Freetype target to handle include paths
This commit is contained in:
parent
c38b98c653
commit
a779084f53
@ -97,18 +97,6 @@ target_include_directories(sfml-graphics SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/e
|
|||||||
# glad sources
|
# glad sources
|
||||||
target_include_directories(sfml-graphics SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/extlibs/headers/glad/include")
|
target_include_directories(sfml-graphics SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/extlibs/headers/glad/include")
|
||||||
|
|
||||||
# let CMake know about our additional graphics libraries paths
|
|
||||||
if(SFML_OS_WINDOWS)
|
|
||||||
list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2")
|
|
||||||
elseif(SFML_OS_MACOS)
|
|
||||||
list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2")
|
|
||||||
list(APPEND CMAKE_LIBRARY_PATH "${PROJECT_SOURCE_DIR}/extlibs/libs-macos/Frameworks")
|
|
||||||
elseif(SFML_OS_IOS)
|
|
||||||
list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2")
|
|
||||||
elseif(SFML_OS_ANDROID)
|
|
||||||
list(APPEND CMAKE_INCLUDE_PATH "${PROJECT_SOURCE_DIR}/extlibs/headers/freetype2")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# find external libraries
|
# find external libraries
|
||||||
if(SFML_OS_ANDROID)
|
if(SFML_OS_ANDROID)
|
||||||
target_link_libraries(sfml-graphics PRIVATE z)
|
target_link_libraries(sfml-graphics PRIVATE z)
|
||||||
|
Loading…
Reference in New Issue
Block a user