Commit 00ca3a81 authored by Olivier Stasse's avatar Olivier Stasse Committed by olivier stasse

[cmake] Remove useless CMakeLists.txt informations.

Based on feedback from G. Saurel.
parent 51888e58
# Copyright 2010, Olivier Stasse, JRL, CNRS/AIST
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Setup project properties
SET(PROJECT_ORG stack-of-tasks) SET(PROJECT_ORG stack-of-tasks)
SET(PROJECT_NAME dynamic-graph) SET(PROJECT_NAME dynamic-graph)
SET(PROJECT_DESCRIPTION "Dynamic graph library") SET(PROJECT_DESCRIPTION "Dynamic graph library")
...@@ -19,14 +19,8 @@ SET(CXX_DISABLE_WERROR TRUE) ...@@ -19,14 +19,8 @@ SET(CXX_DISABLE_WERROR TRUE)
INCLUDE(cmake/base.cmake) INCLUDE(cmake/base.cmake)
# Specify the project. # Specify the project.
cmake_policy(SET CMP0048 NEW) COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
LANGUAGES
CXX
VERSION
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
)
# jrl-cmakemodules handling of usual modules # jrl-cmakemodules handling of usual modules
INCLUDE(cmake/header.cmake) INCLUDE(cmake/header.cmake)
...@@ -53,7 +47,7 @@ set(PACKAGE_EXTRA_MACROS ...@@ -53,7 +47,7 @@ set(PACKAGE_EXTRA_MACROS
# Specific to PKG module # Specific to PKG module
# FIXME: to be changed into lib/dynamic-graph # FIXME: to be changed into lib/dynamic-graph
# to avoid name collision whenX installing dynamic-graph in /usr. # to avoid name collision when installing dynamic-graph in /usr.
SET(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/plugin") SET(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/plugin")
# Add extra keys to pkg-config file to export the location of the # Add extra keys to pkg-config file to export the location of the
...@@ -225,7 +219,9 @@ SETUP_PROJECT_PACKAGE_FINALIZE() ...@@ -225,7 +219,9 @@ SETUP_PROJECT_PACKAGE_FINALIZE()
get_cmake_property(_variableNames VARIABLES) get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames) list (SORT _variableNames)
foreach (_variableName ${_variableNames}) foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}") LIST(APPEND LOGGING_WATCHED_VARIABLES
${_variableName}
)
endforeach() endforeach()
MESSAGE(STATUS "dynamic_graph_VERSION=${dynamic_graph_VERSION}") MESSAGE(STATUS "dynamic_graph_VERSION=${dynamic_graph_VERSION}")
SET(${PROJECT_NAME}_HEADERS
fwd.hh
null-ptr.hh
debug.h
real-time-logger.h
dynamic-graph-api.h
entity.h
factory.h
pool.h
exception-abstract.h
exception-factory.h
exception-signal.h
exception-traces.h
signal.h
signal-array.h
signal-base.h
signal-ptr.h
signal-time-dependent.h
signal-ptr.t.cpp
signal.t.cpp
time-dependency.h
time-dependency.t.cpp
signal-caster.h
signal-cast-helper.h
all-signals.h
signal-helper.h
entity-helper.h
tracer.h
tracer-real-time.h
command.h
eigen-io.h
linear-algebra.h
value.h
command-setter.h
command-setter.t.cpp
command-getter.h
command-getter.t.cpp
command-direct-getter.h
command-direct-setter.h
command-bind.h
all-commands.h
logger.h
)
SET(PUBLIC_HEADER ${${PROJECT_NAME}_HEADERS})
...@@ -40,15 +40,14 @@ ADD_LIBRARY(${LIBRARY_NAME} ...@@ -40,15 +40,14 @@ ADD_LIBRARY(${LIBRARY_NAME}
command/command.cpp command/command.cpp
) )
INSTALL(TARGETS ${PROJECT_NAME} # INSTALL(TARGETS ${PROJECT_NAME}
EXPORT ${TARGETS_EXPORT_NAME} # EXPORT ${TARGETS_EXPORT_NAME}
PUBLIC_HEADER # PUBLIC_HEADER
INCLUDES DESTINATION include/${PROJECT_NAME} # INCLUDES DESTINATION include/${PROJECT_NAME}
) # )
target_include_directories(${PROJECT_NAME} target_include_directories(${PROJECT_NAME}
PUBLIC PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment