[build][fix] Fix install step
- Add installation of dll on windows
- Add cmake config files
- Fix headers install
- Minor cmake file refactoring
Test was performed using:
Test.cpp
#include <iostream>
#include <LidarSlam/Slam.h>
int main(int argc, char *argv[])
{
return 0;
}
and CMakeLists.txt
cmake_minimum_required(VERSION 3.0.0)
project(test)
find_package(LidarSlam REQUIRED)
if(LidarSlam_FOUND)
message("LidarSlam found")
else()
message("LidarSlam not found")
endif()
add_executable(exe test.cpp)
target_link_libraries(exe
PUBLIC
LidarSlam::LidarSlam
)
Edited by Julia Sanchez