Commit 3f398665 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] drop pkg-config

parent 7aa7be77
...@@ -35,8 +35,8 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS}) ...@@ -35,8 +35,8 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
CHECK_MINIMAL_CXX_STANDARD(11 ENFORCE) CHECK_MINIMAL_CXX_STANDARD(11 ENFORCE)
# Project dependencies # Project dependencies
ADD_PROJECT_DEPENDENCY(dynamic-graph REQUIRED PKG_CONFIG_REQUIRES dynamic-graph) ADD_PROJECT_DEPENDENCY(dynamic-graph REQUIRED)
ADD_PROJECT_DEPENDENCY(pinocchio REQUIRED PKG_CONFIG_REQUIRES pinocchio) ADD_PROJECT_DEPENDENCY(pinocchio REQUIRED)
ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS regex) ADD_PROJECT_DEPENDENCY(Boost REQUIRED COMPONENTS regex)
IF(BUILD_TESTING) IF(BUILD_TESTING)
ADD_PROJECT_DEPENDENCY(example-robot-data) ADD_PROJECT_DEPENDENCY(example-robot-data)
...@@ -52,9 +52,8 @@ ENDIF() ...@@ -52,9 +52,8 @@ ENDIF()
IF(BUILD_PYTHON_INTERFACE) IF(BUILD_PYTHON_INTERFACE)
FINDPYTHON() FINDPYTHON()
STRING(REGEX REPLACE "-" "_" PYTHON_DIR ${CUSTOM_HEADER_DIR}) STRING(REGEX REPLACE "-" "_" PYTHON_DIR ${CUSTOM_HEADER_DIR})
ADD_PROJECT_DEPENDENCY(dynamic-graph-python 4.0.0 REQUIRED ADD_PROJECT_DEPENDENCY(dynamic-graph-python 4.0.0 REQUIRED)
PKG_CONFIG_REQUIRES dynamic-graph-python) ADD_PROJECT_DEPENDENCY(eigenpy REQUIRED)
ADD_PROJECT_DEPENDENCY(eigenpy REQUIRED PKG_CONFIG_REQUIRES eigenpy)
SEARCH_FOR_BOOST_PYTHON(REQUIRED) SEARCH_FOR_BOOST_PYTHON(REQUIRED)
ENDIF(BUILD_PYTHON_INTERFACE) ENDIF(BUILD_PYTHON_INTERFACE)
...@@ -196,7 +195,6 @@ IF(BUILD_TESTING) ...@@ -196,7 +195,6 @@ IF(BUILD_TESTING)
ENDIF(BUILD_TESTING) ENDIF(BUILD_TESTING)
ADD_SUBDIRECTORY(doc) ADD_SUBDIRECTORY(doc)
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY) IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
INSTALL(FILES package.xml DESTINATION share/${PROJECT_NAME}) INSTALL(FILES package.xml DESTINATION share/${PROJECT_NAME})
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY) ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
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