CMakeLists.txt 2.1 KB
 Thomas Moulard committed Sep 28, 2010 1 # Copyright 2010, Olivier Stasse, JRL, CNRS/AIST  2 #  Thomas Moulard committed Sep 28, 2010 3 4 5 6 7 # This file is part of dynamic-graph. # dynamic-graph is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version.  8 #  Thomas Moulard committed Sep 28, 2010 9 10 11 12 13 14 # dynamic-graph 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 Lesser Public License for more details. You should have # received a copy of the GNU Lesser General Public License along with # dynamic-graph. If not, see .  15 16 17  CMAKE_MINIMUM_REQUIRED(VERSION 2.6)  Thomas Moulard committed Oct 29, 2010 18 INCLUDE(cmake/base.cmake)  Thomas Moulard committed Nov 02, 2010 19 INCLUDE(cmake/boost.cmake)  Rohan Budhiraja committed Dec 20, 2016 20 INCLUDE(cmake/eigen.cmake)  Thomas Moulard committed Nov 02, 2010 21 INCLUDE(cmake/pthread.cmake)  22   Guilhem Saurel committed Jan 16, 2019 23 SET(PROJECT_ORG stack-of-tasks)  Thomas Moulard committed Oct 29, 2010 24 25 SET(PROJECT_NAME dynamic-graph) SET(PROJECT_DESCRIPTION "Dynamic graph library")  Guilhem Saurel committed Jan 16, 2019 26 SET(PROJECT_URL "http://github.com/${PROJECT_ORG}/${PROJECT_NAME}")  Olivier Stasse committed Oct 27, 2018 27 SET(PROJECT_SUFFIX "-v3")  28   Thomas Moulard committed Nov 01, 2010 29 30 SET(CUSTOM_HEADER_DIR "${PROJECT_NAME}")  Guilhem Saurel committed Aug 16, 2018 31 32 SET(DOXYGEN_USE_MATHJAX YES)  Thomas Moulard committed Oct 29, 2010 33 # Defines paths.  34 SET(LIBRARY_OUTPUT_PATH${PROJECT_BINARY_DIR}/lib)  Francois Bleibel committed Jun 08, 2010 35   Thomas Moulard committed Oct 29, 2010 36 SETUP_PROJECT()  37   Thomas Moulard committed Nov 02, 2010 38 39 40 41 42 43 44 # Add configuration headers for plug-ins. GENERATE_CONFIGURATION_HEADER( ${HEADER_DIR} config-tracer.hh DG_TRACER tracer_EXPORTS) GENERATE_CONFIGURATION_HEADER(${HEADER_DIR} config-tracer-real-time.hh DG_TRACERREALTIME tracer_real_time_EXPORTS)  Thomas Moulard committed Oct 29, 2010 45 46 # FIXME: to be changed into lib/dynamic-graph # to avoid name collision when installing dynamic-graph in /usr.  Thomas Moulard committed Sep 05, 2013 47 SET(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/plugin")  48   Thomas Moulard committed Oct 29, 2010 49 50 # Add extra keys to pkg-config file to export the location of the # plug-in directory in a robust manner.  Thomas Moulard committed Sep 05, 2013 51 SET(PKG_CONFIG_EXTRA "plugindir=${PLUGINDIR}")  52   Thomas Moulard committed Oct 29, 2010 53 # Add dependency toward dynamic graph library in pkg-config file.  Guilhem Saurel committed Jan 16, 2019 54 PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})  Francois Bleibel committed Jun 08, 2010 55   Thomas Moulard committed Oct 29, 2010 56 # Search for Boost.  Thomas Moulard committed Nov 02, 2010 57 SEARCH_FOR_BOOST()  Thomas Moulard committed Nov 02, 2010 58 SEARCH_FOR_PTHREAD()  59   Rohan Budhiraja committed Dec 20, 2016 60 61 62 # Search for Boost. SEARCH_FOR_EIGEN()  63 ADD_SUBDIRECTORY(src)  Guilhem Saurel committed Jan 16, 2019 64 ADD_SUBDIRECTORY(include/${PROJECT_NAME})  Thomas Moulard committed Dec 20, 2010 65 ADD_SUBDIRECTORY(tests)  Thomas Moulard committed Oct 29, 2010 66 67  SETUP_PROJECT_FINALIZE()