Skip to content

CMake improvements? #9

Description

@Anton3

In order to be able to use RansacLib as a modern CMake library, I had to:

  1. Move RS_ROOT/RansacLib directory to RS_ROOT/include/RansacLib, because otherwise I'd get examples, LICENSE and README in the include directory
  2. Delete CMakeLists.txt and write my own, which says:
project(RansacLib LANGUAGES CXX)
add_library(RansacLib INTERFACE)
target_include_directories(RansacLib INTERFACE RansacLib/include)
target_compile_features(RansacLib INTERFACE cxx_std_11)

What about including this "out of the box"? CmakeLists.txt could create the header-only CMake library by default, and build examples when passed some additional flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions