Skip to content

Commit 10cb3f4

Browse files
committed
cmake: add jrl_generate_ros2_package_files
cmake: cosmetic remove cmake: generate ros2 python package files with condiition
1 parent fb47d1c commit 10cb3f4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ install(
224224
PATTERN "*.so"
225225
PATTERN "*.pyd"
226226
)
227-
# ------------------------------------------------------------------------ #
227+
228228
jrl_target_headers(nanoeigenpy_headers INTERFACE
229229
HEADERS ${nanoeigenpy_HEADERS}
230230
BASE_DIRS include
@@ -233,11 +233,15 @@ jrl_target_headers(nanoeigenpy_headers INTERFACE
233233
jrl_add_export_component(NAME nanoeigenpy_headers TARGETS nanoeigenpy_headers)
234234
jrl_export_package()
235235

236-
# ------------------------------------------------------------------------ #
237236
if(BUILD_TESTING)
238237
enable_testing()
239238
add_subdirectory(tests)
240239
endif()
241240

241+
jrl_generate_ros2_package_files(
242+
INSTALL_CPP_PACKAGE_FILES [[NOT BUILD_STANDALONE_PYTHON_INTERFACE]]
243+
INSTALL_PYTHON_PACKAGE_FILES [[BUILD_PYTHON_INTERFACE]]
244+
)
245+
242246
jrl_print_dependencies_summary()
243247
jrl_print_options_summary()

0 commit comments

Comments
 (0)