freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][ftinspect-cmake] [ftinspect] Drop QMake,


From: Charlie Jiang (@cqjjjzr)
Subject: [Git][freetype/freetype-demos][ftinspect-cmake] [ftinspect] Drop QMake, add CMake
Date: Mon, 27 Jun 2022 11:43:14 +0000

Charlie Jiang pushed to branch ftinspect-cmake at FreeType / FreeType Demo Programs

Commits:

  • 08dc90d5
    by Charlie Jiang at 2022-06-27T19:41:34+08:00
    [ftinspect] Drop QMake, add CMake
    
    * src/ftinspect/CMakeLists.txt: Add CMake build file for ftinspect
    * src/ftinspect/ftinspect.pro: Remove QMake build file
    

2 changed files:

Changes:

  • src/ftinspect/CMakeLists.txt
    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
    +)

  • src/ftinspect/ftinspect.pro deleted
    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


  • reply via email to

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