forked from MRPT/mrpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (34 loc) · 1.51 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
INCLUDE(../../cmakemodules/AssureCMakeRootFile.cmake)
project(benchmarkingImageFeatures_GUI)
if(CMAKE_MRPT_HAS_Qt5 AND CMAKE_MRPT_HAS_OPENCV AND "${MRPT_OPENCV_VERSION}" STREQUAL "3.2.0")
set(CPP_FILES src/main.cpp
src/mainwindow.cpp
src/my_qlabel.cpp
src/visual_odometry.h
src/visual_odometry.cpp
src/tracker.cpp src/tracker.h
src/place_recognition.cpp src/place_recognition.h)
set(FILES_TO_MOC
src/mainwindow.h
src/my_qlabel.h
src/visual_odometry.h
)
qt5_wrap_cpp(moc_cpps ${FILES_TO_MOC})
# ---------------------------------------------
# TARGET:
# ---------------------------------------------
# Define the executable target:
add_executable(${PROJECT_NAME}
${CPP_FILES}
${moc_cpps}
${MRPT_VERSION_RC_FILE}
)
# Add the required libraries for linking:
qt5_use_modules(${PROJECT_NAME} Widgets OpenGL)
target_link_libraries(${PROJECT_NAME} ${MRPT_LINKER_LIBS} ${OpenCV_LIBS})
# Dependencies on MRPT libraries:
# Just mention the top-level dependency, the rest will be detected automatically,
# and all the needed #include<> dirs added (see the script DeclareAppDependencies.cmake for further details)
DeclareAppDependencies(${PROJECT_NAME} mrpt-gui mrpt-vision)
DeclareAppForInstall(${PROJECT_NAME})
endif()