Skip to content

Commit fec4827

Browse files
udpage cmake config and add an auxiliar one
1 parent 0f81e98 commit fec4827

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ set_target_properties(
5858

5959
link_directories(${PROJECT_SOURCE_DIR}/build)
6060

61-
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
61+
if(NOT TARGET pybind11)
6262
set(PYBIND11_PYTHON_VERSION "3.6")
6363
add_subdirectory(${PROJECT_SOURCE_DIR}/modules/pybind11)
6464
endif()

cmake/GSplinesConfig.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(gsplines_LIBRARIES gsplines)
2+
get_target_property(gsplines_INCLUDE_DIRS gsplines
3+
INTERFACE_INCLUDE_DIRECTORIES)

cmake/GSplinesConfig.cmake.in

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
get_filename_component(Franka_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
2-
3-
if(NOT TARGET GSplines)
4-
include("${Franka_CMAKE_DIR}/GSplinesTargets.cmake")
5-
endif()
6-
1+
@PACKAGE_INIT@
72
set(gsplines_LIBRARIES gsplines)
8-
get_target_property(gsplines_INCLUDE_DIRS GSplines
3+
get_target_property(gsplines_INCLUDE_DIRS gsplines
94
INTERFACE_INCLUDE_DIRECTORIES)

0 commit comments

Comments
 (0)