-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (43 loc) · 1.22 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
51
52
53
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.5)
project(rico-cluster-qt LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets Gui)
# Set some Windows Specific settings
IF(WIN32)
SET(GUI_TYPE WIN32)
ENDIF(WIN32)
# Set some Apple MacOS Specific settings
IF (APPLE)
SET(GUI_TYPE MACOSX_BUNDLE)
set(MACOSX_BUNDLE_ICON_FILE rico.icns)
set(app_icon_macos "${CMAKE_CURRENT_SOURCE_DIR}/icon/rico.icns")
set_source_files_properties(${app_icon_macos} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
ENDIF (APPLE)
# Default to Release builds
if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
add_executable(rico-cluster-qt ${GUI_TYPE}
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
inputdialog.h
inputdialog.cpp
graphicsscene.h
graphicsscene.cpp
graphicsview.h
graphicsview.cpp
node.h
node.cpp
edge.h
edge.cpp
${app_icon_macos}
)
target_link_libraries(rico-cluster-qt PRIVATE Qt6::Widgets Qt6::Gui)