Charlie Jiang pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
66d6925b
by Charlie Jiang at 2022-06-28T12:37:52+00:00
-
bfbed48e
by Charlie Jiang at 2022-06-28T12:37:52+00:00
3 changed files:
Changes:
... | ... | @@ -4,3 +4,8 @@ ftinspect |
4 | 4 | moc_*.cpp
|
5 | 5 | moc_*.h
|
6 | 6 | .qmake.stash
|
7 | + |
|
8 | +# Visual Studio specific
|
|
9 | +out
|
|
10 | +.vs
|
|
11 | +CMakeSettings.json |
1 | +cmake_minimum_required (VERSION 3.0)
|
|
2 | +cmake_policy(SET CMP0074 NEW)
|
|
3 | +set(CMAKE_CXX_STANDARD 11)
|
|
4 | + |
|
5 | +project("ftinspect")
|
|
6 | + |
|
7 | +if (WIN32)
|
|
8 | + add_compile_options("/utf-8")
|
|
9 | +endif ()
|
|
10 | + |
|
11 | +set(CMAKE_AUTOMOC ON)
|
|
12 | +set(CMAKE_AUTORCC ON)
|
|
13 | +set(CMAKE_AUTOUIC ON)
|
|
14 | + |
|
15 | +find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
|
16 | +find_package(Freetype REQUIRED)
|
|
17 | + |
|
18 | +add_executable(ftinspect
|
|
19 | + "ftinspect.cpp"
|
|
20 | + "maingui.cpp"
|
|
21 | +
|
|
22 | + "engine/engine.cpp"
|
|
23 | + |
|
24 | + "rendering/glyphbitmap.cpp"
|
|
25 | + "rendering/glyphoutline.cpp"
|
|
26 | + "rendering/glyphpointnumbers.cpp"
|
|
27 | + "rendering/glyphpoints.cpp"
|
|
28 | + "rendering/grid.cpp"
|
|
29 | + |
|
30 | + "widgets/qcomboboxx.cpp"
|
|
31 | + "widgets/qgraphicsviewx.cpp"
|
|
32 | + "widgets/qpushbuttonx.cpp"
|
|
33 | + "widgets/qspinboxx.cpp"
|
|
34 | +)
|
|
35 | +target_link_libraries(ftinspect
|
|
36 | + Qt5::Core Qt5::Widgets
|
|
37 | + Freetype::Freetype
|
|
38 | +) |
1 | -# ftinspect.pro
|
|
2 | - |
|
3 | -QMAKE_CXXFLAGS += -isystem ../../../freetype/include
|
|
4 | - |
|
5 | -# To avoid conflicts with the FreeType version compiled into or used by Qt,
|
|
6 | -# we use the static library.
|
|
7 | -#
|
|
8 | -# You should adapt this to your setup.
|
|
9 | -unix|macx {
|
|
10 | - LIBS += ../../../freetype/objs/.libs/libfreetype.a
|
|
11 | - |
|
12 | - CONFIG += link_pkgconfig
|
|
13 | - PKGCONFIG += libpng harfbuzz zlib bzip2 libbrotlidec librsvg-2.0
|
|
14 | -}
|
|
15 | -win32 {
|
|
16 | - LIBS += ../../../freetyp2/objs/vc2010/freetype.lib
|
|
17 | - LIBS += -lpng -lharfbuzz -lz -lbz2 -lm -lbrotlidec -lrsvg-2
|
|
18 | -}
|
|
19 | - |
|
20 | -CONFIG += qt debug
|
|
21 | - |
|
22 | -SOURCES += \
|
|
23 | - engine/engine.cpp \
|
|
24 | - rendering/glyphbitmap.cpp \
|
|
25 | - rendering/glyphoutline.cpp \
|
|
26 | - rendering/glyphpointnumbers.cpp \
|
|
27 | - rendering/glyphpoints.cpp \
|
|
28 | - rendering/grid.cpp \
|
|
29 | - widgets/qcomboboxx.cpp \
|
|
30 | - widgets/qgraphicsviewx.cpp \
|
|
31 | - widgets/qpushbuttonx.cpp \
|
|
32 | - widgets/qspinboxx.cpp \
|
|
33 | - ftinspect.cpp \
|
|
34 | - maingui.cpp
|
|
35 | - |
|
36 | -HEADERS += \
|
|
37 | - engine/engine.hpp \
|
|
38 | - rendering/glyphbitmap.hpp \
|
|
39 | - rendering/glyphoutline.hpp \
|
|
40 | - rendering/glyphpointnumbers.hpp \
|
|
41 | - rendering/glyphpoints.hpp \
|
|
42 | - rendering/grid.hpp \
|
|
43 | - widgets/qcomboboxx.hpp \
|
|
44 | - widgets/qgraphicsviewx.hpp \
|
|
45 | - widgets/qpushbuttonx.hpp \
|
|
46 | - widgets/qspinboxx.hpp \
|
|
47 | - maingui.hpp
|
|
48 | - |
|
49 | -TARGET = ftinspect
|
|
50 | - |
|
51 | -QT += widgets
|
|
52 | - |
|
53 | - |
|
54 | -# end of ftinpect.pro |