-
Notifications
You must be signed in to change notification settings - Fork 1
Draft: En 426 fix eip scanner include paths #1
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
Conversation
…IPScanner project
… of the project paths start at the root
…the EIPScanner library
…anner files relative to the root of the EIPScanner library
add_subdirectory(cip) | ||
add_subdirectory(eip) | ||
add_subdirectory(fileObject) | ||
add_subdirectory(sockets) | ||
add_subdirectory(utils) |
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.
Add a CMakeLists.txt file to every sub_directory to clean up pathing.
Each subdirectory is build independently and then linked back to the parent library
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.
** Added a source to the parent library.
I found a great source by a maintainer of CMake and updated all of the CMakeLists.txt files to use the target_sources()
function.
https://crascit.com/2016/01/31/enhanced-source-file-handling-with-target_sources/
NOTE: The unit tests still are not building as expected. This is something that should still be fixed. Afterwards, this branch can be merged back into the forked source |
…ies and headers to the correct source
…/include rather than /include/EIPScanner
…-directory without needing to create sub-libraries and link them
…-vendors Added the teknic vendor sources
Modified the include paths for the EIPScanner so that all nested paths are explicit. This removes potential confusion with linking as only the
/usr/local/include/
directory needs to be referenced by a cmake project using the EIPScanner.Also updated the Examples to use the EIPScanner library rather than relative paths to the
<PROJECT_DIR>/src
directory. That is slighly hacky as a separatecmake
process is run. This is required as the EIPScanner library needs to be installed before the examples can be built.