-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
50 lines (38 loc) · 1.11 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
cmake_minimum_required(VERSION 3.5)
project(VirtualFPGA LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOUIC_SEARCH_PATHS forms)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets Network REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Network REQUIRED)
add_executable(VirtualFPGA
src/main.cpp
src/mainwindow.cpp
src/model.cpp
src/fileselectdialog.cpp
src/settingsdialog.cpp
src/graderdialog.cpp
include/fileselectdialog.h
include/indexedswitch.h
include/indexedbutton.h
include/model.h
include/mainwindow.h
include/settingsdialog.h
include/versionmessage.h
include/version.h
include/graderdialog.h
forms/fileselectdialog.ui
forms/mainwindow.ui
forms/settingsdialog.ui
forms/graderdialog.ui
resources/resources.qrc
)
target_include_directories(VirtualFPGA PUBLIC
include
forms
)
target_link_libraries(VirtualFPGA PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Network)