Skip to content

Commit

Permalink
udpage cmake config and add an auxiliar one
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Rojas committed Mar 22, 2024
1 parent 0f81e98 commit fec4827
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ set_target_properties(

link_directories(${PROJECT_SOURCE_DIR}/build)

if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
if(NOT TARGET pybind11)
set(PYBIND11_PYTHON_VERSION "3.6")
add_subdirectory(${PROJECT_SOURCE_DIR}/modules/pybind11)
endif()
Expand Down
3 changes: 3 additions & 0 deletions cmake/GSplinesConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(gsplines_LIBRARIES gsplines)
get_target_property(gsplines_INCLUDE_DIRS gsplines
INTERFACE_INCLUDE_DIRECTORIES)
9 changes: 2 additions & 7 deletions cmake/GSplinesConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
get_filename_component(Franka_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)

if(NOT TARGET GSplines)
include("${Franka_CMAKE_DIR}/GSplinesTargets.cmake")
endif()

@PACKAGE_INIT@
set(gsplines_LIBRARIES gsplines)
get_target_property(gsplines_INCLUDE_DIRS GSplines
get_target_property(gsplines_INCLUDE_DIRS gsplines
INTERFACE_INCLUDE_DIRECTORIES)

0 comments on commit fec4827

Please sign in to comment.