Skip to content
Snippets Groups Projects
Commit e2a1a116 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] update PROJECT use

parent 3bb63fa1
No related branches found
No related tags found
1 merge request!10Cmake export
Pipeline #7669 failed
......@@ -16,14 +16,8 @@ set(CXX_DISABLE_WERROR True)
INCLUDE(cmake/base.cmake)
# Specify the project.
cmake_policy(SET CMP0048 NEW)
PROJECT(${PROJECT_NAME}
LANGUAGES
CXX
VERSION
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
)
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
find_package(catkin REQUIRED COMPONENTS
roscpp)
......@@ -57,7 +51,7 @@ ADD_LIBRARY(${PROJECT_NAME}
INSTALL(TARGETS
${PROJECT_NAME}
EXPORT ${TARGETS_EXPORT_NAME}
EXPORT ${TARGETS_EXPORT_NAME}
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# DESTINATION bin
......
Subproject commit 77f090f48bb32ccaea39a2670a74670a5e3be928
Subproject commit 349e9bcac4a3006b61d5eff2956d3cf2f3595dce
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment