Skip to content

Commit

Permalink
compile in catkin
Browse files Browse the repository at this point in the history
  • Loading branch information
guanshoukui committed Jan 7, 2024
1 parent 6c98c29 commit ee5e785
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
cmake_minimum_required(VERSION 3.5)
# cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.0.2)




if (POLICY CMP0091)
cmake_policy(SET CMP0091 NEW)
Expand Down Expand Up @@ -27,7 +31,9 @@ else()
endif()


project(QtADS LANGUAGES CXX VERSION ${VERSION_SHORT})
project(qtads LANGUAGES CXX VERSION ${VERSION_SHORT})

# catkin_package()

option(BUILD_STATIC "Build the static library" OFF)
option(BUILD_EXAMPLES "Build the examples" ON)
Expand Down
23 changes: 23 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<package>
<name>qtads</name>
<version>0.11.0</version>
<description>
Tutorial showing how to compile your own C++ program with RViz displays and features.
</description>
<maintainer email="[email protected]">Mabel Zhang</maintainer>
<license>BSD</license>

<url>http://ros.org/wiki/librviz_tutorial</url>
<author>Dave Hershberger</author>

<buildtool_depend>catkin</buildtool_depend>

<run_depend>libqt5-core</run_depend>
<run_depend>libqt5-gui</run_depend>
<run_depend>libqt5-widgets</run_depend>
<run_depend>roscpp</run_depend>

<export>
<rosdoc config="${prefix}/rosdoc.yaml"/>
</export>
</package>
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ set_target_properties(${library_name} PROPERTIES
VERSION ${VERSION_SHORT}
EXPORT_NAME ${library_name}
DEBUG_POSTFIX "d"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
# ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
# LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
# RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
)
if(QT_VERSION_MAJOR STREQUAL "5")
set_target_properties(${library_name} PROPERTIES
Expand Down

0 comments on commit ee5e785

Please sign in to comment.