In order to be able to use RansacLib as a modern CMake library, I had to:
- Move
RS_ROOT/RansacLib directory to RS_ROOT/include/RansacLib, because otherwise I'd get examples, LICENSE and README in the include directory
- 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.
In order to be able to use RansacLib as a modern CMake library, I had to:
RS_ROOT/RansacLibdirectory toRS_ROOT/include/RansacLib, because otherwise I'd getexamples,LICENSEandREADMEin the include directoryCMakeLists.txtand write my own, which says:What about including this "out of the box"?
CmakeLists.txtcould create the header-only CMake library by default, and build examples when passed some additional flag.