diff --git a/CMakeLists.txt b/CMakeLists.txt index a60f028d3..0c3db156b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,9 +46,11 @@ elseif(APPLE) FIND_LIBRARY(OpenGL_LIBRARY OpenGL) FIND_LIBRARY(IOKit_LIBRARY IOKit) FIND_LIBRARY(CoreVideo_LIBRARY CoreVideo) + find_package(Freetype REQUIRED) + message(STATUS "Found Freetype in ${FREETYPE_INCLUDE_DIR}") MARK_AS_ADVANCED(COCOA_LIBRARY OpenGL_LIBRARY) SET(APPLE_LIBS ${COCOA_LIBRARY} ${IOKit_LIBRARY} ${OpenGL_LIBRARY} ${CoreVideo_LIBRARY}) - SET(APPLE_LIBS ${APPLE_LIBS} ${GLFW3_LIBRARY} ${ASSIMP_LIBRARY}) + SET(APPLE_LIBS ${APPLE_LIBS} ${GLFW3_LIBRARY} ${ASSIMP_LIBRARY} ${FREETYPE_LIBRARIES}) set(LIBS ${LIBS} ${APPLE_LIBS}) else() set(LIBS ) diff --git a/README.md b/README.md index a69b78ed6..4c4663dc2 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Using [this project](https://github.com/01e9/docker-ide) you can start IDE in do ## Mac OS X building Building on Mac OS X is fairly simple (thanks [@hyperknot](https://github.com/hyperknot)): ``` -brew install cmake assimp glm glfw +brew install cmake assimp glm glfw freetype mkdir build cd build cmake ../.