-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add target_include_directories and rtf_add_plugin #82
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general it is ok, but it would be good to avoid having public properties set on exectuable. Furthermore, it would be good to cleanup the existing macros for adding plugins : https://github.com/robotology/robot-testing/blob/master/conf/RTFTestHelpers.cmake#L30 .
src/testrunner/CMakeLists.txt
Outdated
@@ -32,6 +32,11 @@ source_group("Header Files" FILES ${folder_header}) | |||
add_executable(${PROJECT_NAME} ${folder_source} ${folder_header}) | |||
target_link_libraries(${PROJECT_NAME} ${RTF_LIBS} ${RTF_INTERNAL_LIBS} ${TinyXML_LIBRARIES}) | |||
|
|||
target_compile_features(${PROJECT_NAME} PUBLIC cxx_nullptr) | |||
|
|||
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big problem, but it is a bit strange to have PUBLIC
include directories/compile features for an executable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in b85b8da .
1 similar comment
1 similar comment
merged thanks! |
My bad, the existing macros are just to add internal tests of RTF. |
This PR add
add target_include_directories
andcxx11 target_compile features
inRTF_dll
RTF_ruby
RTF_lua
RTF_python
.Moreover it adds the
cmake
macrortf_add_plugin
.Please review code.