Skip to content

Commit

Permalink
Update CMake variable names for Qt5.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Venator committed Jun 10, 2016
1 parent 30e889b commit 3255ab8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,21 @@ catkin_package(
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(include
${catkin_INCLUDE_DIRS}
${QT_INCLUDE_DIR} )
add_definitions(${QT_DEFINITIONS})
${Qt5Core_INCLUDE_DIRS}
${Qt5Gui_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
)
add_definitions(
${Qt5Core_DEFINITIONS}
${Qt5Gui_DEFINITIONS}
${Qt5Widgets_DEFINITIONS}
)

set(QT_USE_QTCORE TRUE)
set(QT_USE_QTGUI TRUE)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")

# Build mapviz node
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
Expand Down Expand Up @@ -49,7 +58,9 @@ qt5_wrap_cpp(SRC_FILES ${HEADER_FILES})

add_executable(swri_console ${HEADER_FILES} ${SRC_FILES} ${RCC_SRCS} src/main.cpp)
target_link_libraries(swri_console
${QT_LIBRARIES}
${Qt5Core_LIBRARIES}
${Qt5Gui_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${catkin_LIBRARIES})

install(DIRECTORY include/${PROJECT_NAME}/
Expand Down

0 comments on commit 3255ab8

Please sign in to comment.