-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathCMakeLists.txt
57 lines (45 loc) · 1.4 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cmake_minimum_required(VERSION 3.15)
project(nedit-ng LANGUAGES CXX VERSION 2025.1)
enable_testing()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
include("AddWarnings")
include("DetectCompiler")
include("DetectOS")
include("EnableSanitizers")
include("EnableSTLDebug")
include("Profiling")
include("ProjectDefaults")
include("QtTranslations")
set(CMAKE_PROJECT_HOMEPAGE_URL "https://github.com/eteran/nedit-ng")
set(CMAKE_PROJECT_DESCRIPTION "A Qt port of the Nirvana Editor (NEdit)")
set(NEDIT_PURIFY OFF CACHE BOOL "Fill Unused TextBuffer space")
set(NEDIT_PER_TAB_CLOSE ON CACHE BOOL "Per Tab Close Buttons")
set(NEDIT_VISUAL_CTRL_CHARS ON CACHE BOOL "Visualize ASCII Control Characters")
if(NEDIT_PURIFY)
add_definitions(-DPURIFY)
endif()
if(NEDIT_VISUAL_CTRL_CHARS)
add_definitions(-DVISUAL_CTRL_CHARS)
endif()
if(NEDIT_PER_TAB_CLOSE)
add_definitions(-DPER_TAB_CLOSE)
endif()
add_definitions(-DQT_NO_CAST_FROM_ASCII)
add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_KEYWORDS)
add_subdirectory(Util)
add_subdirectory(src)
add_subdirectory(libs)
add_subdirectory(client)
add_subdirectory(Regex)
add_subdirectory(Settings)
add_subdirectory(Interpreter)
if(UNIX)
find_package(X11)
if(${X11_FOUND})
add_subdirectory(import)
endif()
endif()