Changeset View
Changeset View
Standalone View
Standalone View
tools/uni2characterwidth/CMakeLists.txt
- This file was added.
1 | ### uni2characterwidth | ||||
---|---|---|---|---|---|
2 | ### | ||||
3 | ### Converts Unicode Character Database files into character width lookup | ||||
4 | ### tables. Uses a template file to place the tables in a source code file | ||||
5 | ### together with a function for finding the width for specified character. | ||||
6 | ### | ||||
7 | ### See `uni2characterwidth --help` for usage information | ||||
8 | if(KONSOLE_BUILD_UNI2CHARACTERWIDTH) | ||||
9 | | ||||
10 | find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED | ||||
11 | Core | ||||
12 | ) | ||||
13 | find_package(KF5 ${KF5_MIN_VERSION} REQUIRED | ||||
14 | KIO | ||||
15 | ) | ||||
16 | | ||||
17 | set(uni2characterwidth_SRC | ||||
18 | uni2characterwidth.cpp | ||||
19 | properties.h | ||||
20 | template.cpp | ||||
21 | template.h | ||||
22 | ) | ||||
23 | | ||||
24 | add_executable(uni2characterwidth ${uni2characterwidth_SRC}) | ||||
25 | target_link_libraries(uni2characterwidth | ||||
26 | Qt5::Core | ||||
27 | KF5::KIOCore | ||||
28 | ) | ||||
29 | | ||||
30 | endif() |