-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (40 loc) · 1.35 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
54
cmake_minimum_required(VERSION 3.16)
project(image-texture-analysis)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_OSX_ARCHITECTURES "arm64")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(Qt6_DIR "/usr/local/opt/qt/lib/cmake/Qt6")
#set(Qt6_DIR "/opt/homebrew/Cellar/qt/6.2.3_1/lib/cmake/Qt6")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
if (Eigen3_FOUND)
INCLUDE_DIRECTORIES("${EIGEN3_INCLUDE_DIR}")
message(STATUS "Eigen3 found: ${EIGEN3_INCLUDE_DIR}")
endif ()
find_package(OpenCV REQUIRED)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
find_package(Qt6 COMPONENTS Concurrent REQUIRED)
find_package(Qt6 COMPONENTS Core REQUIRED)
find_package(Qt6 COMPONENTS Qml REQUIRED)
find_package(Qt6 COMPONENTS Quick REQUIRED)
find_package(Qt6 COMPONENTS Charts REQUIRED)
find_package(Qt6 COMPONENTS LinguistTools REQUIRED)
set(QT6_LIBS
${QT6_LIBS}
Qt6::Charts
Qt6::Quick
Qt6::Qml
Qt6::Widgets
Qt6::Concurrent
Qt6::Core)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(image-texture-analysis
analysis/TextureAnalysis.cpp
controller/PolygonController.cpp
controller/RectController.cpp
viewer/Viewer.cpp
mainwindow.cpp
main.cpp)
target_link_libraries(image-texture-analysis ${OpenCV_LIBS} ${QT6_LIBS})