freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] cmake improvements


From: Tamás Kenéz
Subject: [ft-devel] cmake improvements
Date: Tue, 24 Nov 2015 23:43:01 +0100

Hi,

I've made some CMake-related improvements. Please review the patches, let me know if you need this or if I should I change something.

The patches can be applied to the current master (d8fc009):

    d7933f0 [cmake] add cmake-testbuild.sh to test the config-module
    b45830a [cmake] create config-module with install(EXPORT)
    b9b4861 [cmake] set CMAKE_DEBUG_POSTFIX to "d"
    26838cd [cmake] add WITH_* variables to force/auto/omit ZLIB/BZip2/PNG/HarfBuzz
    ac250b0 [cmake] make FindHarfbuzz observe the REQUIRED option
    d8fc009 Update `CHANGES' file.

The main feature is b45830a that creates a generated a config-module which provides an IMPORTED library target `freetype` which hides all the details needed to link to the library, so that's all what should be done to use it:

    find_package(Freetype CONFIG)
    ...
    target_link_libraries(<my-target> freetype)

The config-module (and the cmake-build) can be smoke-tested by typing:

    builds/cmake-testbuild.sh

Cheers,
Tamas

Attachment: patch0001.diff
Description: Text document

Attachment: patch0002.diff
Description: Text document

Attachment: patch0003.diff
Description: Text document

Attachment: patch0004.diff
Description: Text document

Attachment: patch0005.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]