Commit 65fd0c43 authored by Guilhem Saurel's avatar Guilhem Saurel

[CMake] use ADD_PROJECT_DEPENDENCY

parent 6a1dbb3a
# Copyright 2010-2020, Florent Lamiraux, Thomas Moulard, Olivier Stasse, Guilhem Saurel, JRL, CNRS/AIST, LAAS-CNRS
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
SET(PROJECT_NAMESPACE stack-of-tasks)
SET(PROJECT_NAME dynamic-graph-python)
......@@ -31,12 +31,8 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
FINDPYTHON()
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
ADD_REQUIRED_DEPENDENCY(eigen3)
ADD_PROJECT_DEPENDENCY(dynamic-graph 3.8.1 REQUIRED)
# manually append to the .pc dependencies for now
# ref https://github.com/jrl-umi3218/jrl-cmakemodules/issues/320
_ADD_TO_LIST(_PKG_CONFIG_REQUIRES "dynamic-graph >= 3.8.1" ",")
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED PKG_CONFIG_REQUIRES eigen3)
ADD_PROJECT_DEPENDENCY(dynamic-graph REQUIRED PKG_CONFIG_REQUIRES dynamic-graph)
PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")
......
Subproject commit 61344038b1352d5a8de1e20db710c83be805d2eb
Subproject commit 4514454f5f9462047b5c29f61b6c3e0db731c416
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