CMakeLists.txt 2.21 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)  olivier-stasse committed Nov 22, 2010 22 INCLUDE(cmake/cpack.cmake)  23   Thomas Moulard committed Oct 29, 2010 24 25 26 SET(PROJECT_NAME dynamic-graph) SET(PROJECT_DESCRIPTION "Dynamic graph library") SET(PROJECT_URL "http://github.com/jrl-umi3218/dynamic-graph")  27   Thomas Moulard committed Nov 01, 2010 28 29 SET(CUSTOM_HEADER_DIR "${PROJECT_NAME}")  Guilhem Saurel committed Aug 16, 2018 30 31 SET(DOXYGEN_USE_MATHJAX YES)  Thomas Moulard committed Oct 29, 2010 32 # Defines paths.  33 SET(LIBRARY_OUTPUT_PATH${PROJECT_BINARY_DIR}/lib)  Francois Bleibel committed Jun 08, 2010 34   Thomas Moulard committed Oct 29, 2010 35 SETUP_PROJECT()  36   Thomas Moulard committed Nov 02, 2010 37 38 39 40 41 42 43 44 45 46 # 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) GENERATE_CONFIGURATION_HEADER( ${HEADER_DIR} config-contiifstream.hh DG_CONTIIFSTREAM contiifstream_EXPORTS)  Thomas Moulard committed Oct 29, 2010 47 48 # FIXME: to be changed into lib/dynamic-graph # to avoid name collision when installing dynamic-graph in /usr.  Thomas Moulard committed Sep 05, 2013 49 SET(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/plugin")  50   Thomas Moulard committed Oct 29, 2010 51 52 # 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 53 SET(PKG_CONFIG_EXTRA "plugindir=\${PLUGINDIR}")  54   Thomas Moulard committed Oct 29, 2010 55 # Add dependency toward dynamic graph library in pkg-config file.  Thomas Moulard committed Nov 02, 2010 56 PKG_CONFIG_APPEND_LIBS("dynamic-graph")  Francois Bleibel committed Jun 08, 2010 57   Thomas Moulard committed Oct 29, 2010 58 # Search for Boost.  Thomas Moulard committed Nov 02, 2010 59 SEARCH_FOR_BOOST()  Thomas Moulard committed Nov 02, 2010 60 SEARCH_FOR_PTHREAD()  61   Rohan Budhiraja committed Dec 20, 2016 62 63 64 # Search for Boost. SEARCH_FOR_EIGEN()  65 66 ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(include)  Thomas Moulard committed Dec 20, 2010 67 ADD_SUBDIRECTORY(tests)  Thomas Moulard committed Dec 31, 2010 68 ADD_SUBDIRECTORY(share)  Thomas Moulard committed Oct 29, 2010 69 70  SETUP_PROJECT_FINALIZE()  Thomas Moulard committed Sep 27, 2013 71 SETUP_PROJECT_CPACK()