-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (24 loc) · 742 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (24 loc) · 742 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
cmake_minimum_required(VERSION 3.16)
project(sqlExplorer VERSION 0.1 LANGUAGES CXX)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(BUILD_SHARED_LIBS FALSE)
set(PROJECT_SOURCES
src/main.cpp
src/sqlexplorer.cpp
src/sqlexplorer.h
src/sqlexplorer.ui
src/query.h
src/credsdialog.cpp
src/credsdialog.h
src/credsDialog.ui
)
include_directories("~/.conan2")
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
find_package(libpqxx REQUIRED)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
target_link_libraries(${PROJECT_NAME} libpqxx::pqxx)
target_link_libraries(${PROJECT_NAME} Qt6::Widgets)