Skip to content

Commit

Permalink
Add PRIVATE_INCLUDE_DIRS argument to gz_add_system
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Lamprianidis <[email protected]>
  • Loading branch information
nlamprian committed Nov 14, 2021
1 parent f27d80d commit d68459a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/systems/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function(gz_add_system system_name)

set(options)
set(oneValueArgs)
set(multiValueArgs SOURCES PUBLIC_LINK_LIBS PRIVATE_LINK_LIBS PRIVATE_COMPILE_DEFS)
set(multiValueArgs SOURCES PUBLIC_LINK_LIBS PRIVATE_INCLUDE_DIRS PRIVATE_LINK_LIBS PRIVATE_COMPILE_DEFS)

cmake_parse_arguments(gz_add_system "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})

Expand All @@ -47,6 +47,13 @@ function(gz_add_system system_name)
ignition-plugin${IGN_PLUGIN_VER}::register
)

if(gz_add_system_PRIVATE_INCLUDE_DIRS)
target_include_directories(${system_target}
PRIVATE
${gz_add_system_PRIVATE_INCLUDE_DIRS}
)
endif()

if(gz_add_system_PRIVATE_COMPILE_DEFS)
target_compile_definitions(${system_target}
PRIVATE
Expand Down

0 comments on commit d68459a

Please sign in to comment.