diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmake/FindFreetype.cmake | 5 | ||||
-rw-r--r-- | src/oce.mk | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/cmake/FindFreetype.cmake b/src/cmake/FindFreetype.cmake new file mode 100644 index 0000000..4f531ff --- /dev/null +++ b/src/cmake/FindFreetype.cmake @@ -0,0 +1,5 @@ +find_package(PkgConfig REQUIRED) + +pkg_check_modules(FREETYPE freetype2) + +set(FREETYPE_LIBRARY ${FREETYPE_LIBRARIES}) #For compatibility @@ -25,9 +25,8 @@ define $(PKG)_BUILD -DOCE_INSTALL_BIN_DIR=$(PREFIX)/$(TARGET)/bin \ -DOCE_INSTALL_LIB_DIR=$(PREFIX)/$(TARGET)/lib \ -DOCE_INSTALL_CMAKE_DATA_DIR=$(PREFIX)/$(TARGET)/lib/cmake/OCE \ - -DFREETYPE_INCLUDE_DIRS=$(PREFIX)/$(TARGET)/include/freetype2 \ - -DFREETYPE_LIBRARY:STRING="`$(TARGET)-pkg-config --libs freetype2`" - + -DCMAKE_MODULE_PATH=$(PWD)/src/cmake + $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1 cd '$(1)/examples/find_package_oce' && cmake . -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' |