| 1 |
#----------------------------------------------------------------- |
| 2 |
# CMake file for the MRPT application: holonomic-navigator-demo |
| 3 |
# |
| 4 |
# Run with "cmake ." at the root directory |
| 5 |
#----------------------------------------------------------------- |
| 6 |
project(holonomic-navigator-demo) |
| 7 |
|
| 8 |
mrpt_return_if_not_wxwidgets() |
| 9 |
if (NOT CMAKE_MRPT_HAS_OPENGL_GLUT) |
| 10 |
return() |
| 11 |
endif() |
| 12 |
# --------------------------------------------- |
| 13 |
# TARGET: |
| 14 |
# --------------------------------------------- |
| 15 |
set(SRCS |
| 16 |
holonomic_navigator_demoApp.cpp holonomic_navigator_demoApp.h |
| 17 |
holonomic_navigator_demoMain.cpp holonomic_navigator_demoMain.h |
| 18 |
../ReactiveNavigationDemo/DEFAULT_GRIDMAP_DATA.h |
| 19 |
MyGLCanvas.cpp MyGLCanvas.h |
| 20 |
) |
| 21 |
|
| 22 |
if(WIN32) |
| 23 |
set(SRCS ${SRCS} resource.rc) |
| 24 |
endif() |
| 25 |
|
| 26 |
# Define the executable target: |
| 27 |
add_executable(${PROJECT_NAME} WIN32 ${SRCS} ${MRPT_VERSION_RC_FILE}) |
| 28 |
|
| 29 |
# Add the required libraries for linking: |
| 30 |
target_link_libraries(${PROJECT_NAME} |
| 31 |
imp_wxwidgets |
| 32 |
mrptwxthings |
| 33 |
) |
| 34 |
|
| 35 |
# Dependencies on MRPT libraries: |
| 36 |
# Just mention the top-level dependency, the rest will be detected automatically, |
| 37 |
# and all the needed #include<> dirs added (see the script DeclareAppDependencies.cmake for further details) |
| 38 |
DeclareAppDependencies(${PROJECT_NAME} mrpt::nav mrpt::gui) |
| 39 |
|
| 40 |
DeclareAppForInstall(${PROJECT_NAME}) |
| 41 |
|
| 42 |
AppStartMenuLink(${PROJECT_NAME} "Holonomic navigation simulator") # Add link to the Start menu (in Windows Installable packages) |