Skip to content

Conversation

@Dawars
Copy link

@Dawars Dawars commented Jan 21, 2021

Hi,
Great CMake file, it's easily readable!
I modified it to enable using it as a library from code using add_subdirectory.

I replaced include_directories with target_include_directories.

Example use:

  1. Add submodule/clone repo to libs folder
  2. Add following to CMake file:
add_subdirectory(libs/magsac)

target_link_libraries(YourProgram PUBLIC MAGSAC GraphCutRANSAC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant