Commit 0ad4f68d authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Add Doxygen support, simplify CMakeLists.txt files.

parent e44b9951
......@@ -23,9 +23,18 @@ SET(PROJECT_VERSION 0.2)
SETUP_PROJECT()
ADD_SUBDIRECTORY(include)
SET(${PROJECT_NAME}_HEADERS
include/hpp/util/assertion.hh
include/hpp/util/debug.hh
include/hpp/util/deprecated.hh
include/hpp/util/exception.hh
include/hpp/util/indent.hh
include/hpp/util/portability.hh
include/hpp/util/timer.hh
include/hpp/util/version.hh
)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(tests)
SETUP_PROJECT_FINALIZE()
Subproject commit 614aa1b7bbd0237b41395fa61f1003ff501b8806
Subproject commit 537bddfeb7b7bde759edb43596f82f9e488715c9
......@@ -2,10 +2,10 @@ FILE_PATTERNS = *.cc *.hh *.hxx \
*.c *.h \
*.ice
INPUT = @abs_top_srcdir@/include \
@abs_top_srcdir@/src \
@abs_top_srcdir@/doc
INPUT = @CMAKE_CURRENT_SOURCE_DIR@/include \
@CMAKE_CURRENT_SOURCE_DIR@/src \
@CMAKE_CURRENT_SOURCE_DIR@/doc
HTML_HEADER = @abs_top_srcdir@/doc/header.html
HTML_FOOTER = @abs_top_srcdir@/doc/footer.html
IMAGE_PATH = @abs_top_srcdir@/doc/pictures
HTML_HEADER = @CMAKE_CURRENT_SOURCE_DIR@/doc/header.html
HTML_FOOTER = @CMAKE_CURRENT_SOURCE_DIR@/doc/footer.html
IMAGE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/doc/pictures
# Copyright (C) 2010 Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SET(${PROJECT_NAME}_HEADERS
hpp/util/assertion.hh
hpp/util/config.hh
hpp/util/debug.hh
hpp/util/deprecated.hh
hpp/util/exception.hh
hpp/util/indent.hh
hpp/util/portability.hh
hpp/util/timer.hh
hpp/util/version.hh
)
......@@ -12,3 +12,36 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check for unistd.h presence.
INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
IF(${HAVE_UNISTD_H})
ADD_DEFINITIONS(-DHAVE_UNISTD_H)
ENDIF(${HAVE_UNISTD_H})
# The shared library is being built right now.
# Required for dllimport/dllexport mechanisms in
# the generated header config.hh.
ADD_DEFINITIONS(-DBUILDING_HPP_UTIL)
# Define logging directory location.
ADD_DEFINITIONS(-DHPP_LOGGINGDIR="${CMAKE_INSTALL_PREFIX}/var/log")
# Default include directories.
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_BINARY_DIR}/../include
${CMAKE_CURRENT_SOURCE_DIR}/../include
)
# Compile hpp-util library.
ADD_LIBRARY(hpp-util
SHARED
debug.cc
exception.cc
indent.cc
timer.cc
version.cc
)
INSTALL(TARGETS hpp-util DESTINATION lib)
Supports Markdown
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