-
Notifications
You must be signed in to change notification settings - Fork 145
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
Modernize cmake; make cmake compatible with git submoduling #103
Conversation
Can one of the admins verify this patch? |
ok to test |
(TODO: write a test of use with find_package(libnabo)) |
Updates:
|
LGTM. |
Two last comments:
|
Ubutu 20.04 and 18.04 (amd64). |
Oki. All good from my side, let's wait for details on the pipeline. |
Thank you for taking the time to do this, it's very cool 👍 |
It's not specific to a given build, they all have the following errors:
|
ok to test |
Same errors |
I'll try to reproduce it... I think it may be related to the outdated version of Eigen in trusty. |
Ok, there was a missing cmake command that made the python module to fail to build. It's fixed now, please verify and merge at your convenience. |
Alright, I'm not sure how to handle:
Can someone from ETH how this repo was set up? |
I had a look, there seems to be old build hooks in the config. Removed unreachable URLS. Let's see if it works again. |
@pomerlef fixed. Seems to have been a reference to a status check that does not exist anymore. |
@michaelpantic thanks for the investigation! |
What am I doing wrong? I'm unable to compile libpointmatcher, and neither can I compile the cmake example in libnabo:
Looking at libnabo-targets-release.cmake , there's not a word about include directories: #----------------------------------------------------------------
# Generated CMake target import file for configuration "Release".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "libnabo::nabo" for configuration "Release"
set_property(TARGET libnabo::nabo APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(libnabo::nabo PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "gomp"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libnabo.a"
)
list(APPEND _IMPORT_CHECK_TARGETS libnabo::nabo )
list(APPEND _IMPORT_CHECK_FILES_FOR_libnabo::nabo "${_IMPORT_PREFIX}/lib/libnabo.a" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION) |
This change to the generated libnabo-targets-release.cmake helps building both the example and libpointmatcher: set_target_properties(libnabo::nabo PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE "gomp"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libnabo.a"
+ INTERFACE_INCLUDE_DIRECTORIES "/media/data/subt/mapper/devel/include;/usr/include/eigen3"
) |
Can you please update to the latest version? It works straight away for me... and the automatically generated targets file has:
|
Let's continue in #106. I am using up-to-date master version. |
This PR does:
install(EXPORT ...
to cmake scripts to allow better use of exported targets.