-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcMakeLists.txt
35 lines (24 loc) · 923 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
34
35
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
project(riskManager LANGUAGES C CXX)
#set(CMAKE_PREFIX_PATH "C:/boost_1_67_0/boost_1_67_0")
set(CMAKE_PREFIX_PATH "D:\\Qt\\Qt5.6.2\\5.6\\msvc2013_64")
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed
set(CMAKE_AUTOMOC ON)
# Create code from a list of Qt designer ui files
set(CMAKE_AUTOUIC ON)
find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Gui CONFIG REQUIRED)
find_package(Qt5Sql CONFIG REQUIRED)
find_package(Qt5Widgets CONFIG REQUIRED)
message(${Qt5Core_INCLUDE_DIRS})
message(${Qt5Gui_INCLUDE_DIRS})
message(${Qt5Sql_INCLUDE_DIRS})
message(${Qt5Widgets_INCLUDE_DIRS})
message(${Qt5Sql_DEFINITIONS})
message(${Qt5Sql_COMPILE_DEFINITIONS})
message(${Qt5Core_LIBRARIES})
message(${Qt5Core_DEFINITIONS})
message(${Qt5Core_COMPILE_DEFINITIONS})
add_subdirectory(src)