forked from Simsys/qhexedit2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (22 loc) · 1.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.15)
project(hexedit
VERSION 0.1.0
LANGUAGES CXX
)
set(PROJECT_ORGANIZATION_NAME "qtilities")
set(PROJECT_ORGANIZATION_URL "${PROJECT_ORGANIZATION_NAME}.github.io")
option(HEXEDIT_BUILD_APPLICATION "Whether to build the hex editor application [default: OFF]" OFF)
option(HEXEDIT_BUILD_PLUGIN "Whether to build the QtDesigner plugin [default: OFF]" OFF)
option(HEXEDIT_SYSTEM_LIBRARY "Use HexEdit system library [default: OFF]" OFF)
option(HEXEDIT_TRANSLATIONS_UPDATE "Update source translations [default: OFF]" OFF)
option(HEXEDIT_TRANSLATION_TEST_ENABLED "Whether to enable translation testing [default: OFF]" OFF)
set (HEXEDIT_TRANSLATION_TEST "it" CACHE STRING "Country code of language to test in IDE [default: it]")
set (HEXEDIT_QT_VERSION 5 CACHE STRING "Qt version to use [default: 5]")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
## Qt
set(CMAKE_AUTOMOC ON)
find_package(QT NAMES Qt${HEXEDIT_QT_VERSION})
find_package(Qt${QT_VERSION_MAJOR} REQUIRED LinguistTools Widgets)
add_subdirectory(src)