GobySoft / dccl

Dynamic Compact Control Language
Other
17 stars 13 forks source link

Set the INTERFACE_INCLUDE_DIRECTORIES on the dccl library target #2

Closed tsaubergine closed 8 years ago

tsaubergine commented 8 years ago

This lets downstream users import the library regardless of install location and get the install directories (e.g. for passing to protoc for compiling the DCCL .proto files). For example:

find_package(DCCL REQUIRED)     
get_target_property(DCCL_INCLUDE_DIR dccl INTERFACE_INCLUDE_DIRECTORIES)
protobuf_include_dirs("${DCCL_INCLUDE_DIR}")

@berkowski: Could you look at this change (and the corresponding merge request GobySoft/goby#2 and let me know if this fixes your problem building Goby against DCCL installed in /opt)?

berkowski commented 8 years ago

Tested and worked for me when used with GobySoft/goby#2