-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (31 loc) · 993 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
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.22)
project(GLCM-Texture-Analysis LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_OSX_ARCHITECTURES "arm64")
find_package(OpenCV REQUIRED)
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
if (Eigen3_FOUND)
INCLUDE_DIRECTORIES("${EIGEN3_INCLUDE_DIR}")
message(STATUS "Eigen3 found: ${EIGEN3_INCLUDE_DIR}")
endif ()
include_directories(${CMAKE_SOURCE_DIR})
set(LIBS
${LIBS}
${OpenCV_LIBS})
set(SOURCES
${SOURCES}
analysis/TextureAnalysis.cpp
controller/PolygonController.cpp
controller/RectController.cpp
viewer/Viewer.cpp)
set(MAIN_FILES
${MAIN_FILES}
glcm-analysis
glcm-polygon
glcm-rectangle)
foreach (MAIN_FILE IN LISTS MAIN_FILES)
add_executable(${MAIN_FILE} ${MAIN_FILE}.cpp ${SOURCES})
target_link_libraries(${MAIN_FILE} ${LIBS})
endforeach ()
add_executable(canvas-example canvas-example.cpp)
target_link_libraries(canvas-example ${LIBS})