-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (24 loc) · 970 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
project(TableKM VERSION 1.0 LANGUAGES CXX)
set(LANGUAGE CXX)
set(CXX_STANDARD_REQUIRED 17)
if(CMAKE_COMPILER_IS_GNUCXX)
message(STATUS "GCC detected, adding compile flags")
add_compile_options(-Wall -Wextra -Wpedantic)
endif(CMAKE_COMPILER_IS_GNUCXX)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/KMTableLib)
message(FATAL_ERROR "KMTableLib is required to build this project See https://github.com/keshav-sahu7/KMTableLib.git to get KMTableLib")
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
find_package(Qt6 COMPONENTS PrintSupport REQUIRED)
# src is included so that automatically generated ui_*.h files can include these headers.
include_directories(${CMAKE_SOURCE_DIR}/KMTableLib/include ${Qt6Widgets_INCLUDE_DIRS} src)
link_directories(${CMAKE_SOURCE_DIR}/KMTableLib/lib)
set(
K_BUILD_DIR
${CMAKE_BUILD_TYPE}
)
add_subdirectory(src)