-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
43 lines (33 loc) · 811 Bytes
/
CMakeLists.txt
File metadata and controls
43 lines (33 loc) · 811 Bytes
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
cmake_minimum_required(VERSION 3.5...3.12)
project(LSPClient LANGUAGES CXX VERSION 1.0.0)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD 14)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)
add_library(LSPClient STATIC
include/LSPClient.hpp
include/LSP.hpp
include/LSPUri.hpp
third_party/nlohmann/json.hpp
src/LSPClient.cpp
)
target_include_directories(LSPClient PUBLIC
include
third_party
)
if(CMAKE_COMPILER_IS_GNUCXX)
target_compile_options(LSPClient
PRIVATE
-pedantic
-Wall
-Wextra
-Woverloaded-virtual
-Winit-self
-Wunreachable-code
-Wno-unused-parameter
)
endif(CMAKE_COMPILER_IS_GNUCXX)
target_link_libraries(LSPClient
Qt${QT_VERSION_MAJOR}::Core
)