Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit f78a092

Browse files
authored
Merge pull request #17 from petrikvladimir/devel
Set include directory property of the library interface.
2 parents b2cabb8 + 4d407cb commit f78a092

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ if(ROS_VERSION EQUAL 1) # if ROS1
3434
generate_messages(DEPENDENCIES ${MESSAGE_DEPENDENCIES})
3535

3636
add_library(${PROJECT_NAME} INTERFACE)
37+
target_include_directories(${PROJECT_NAME}
38+
INTERFACE $<INSTALL_INTERFACE:include>)
3739

3840
install(
3941
TARGETS ${PROJECT_NAME}

0 commit comments

Comments
 (0)