Fix windows compilation with MSVC 2015
- Use OpenMP 2.0 standard (MSVC only supports OpenMP 2.0 standard) : use
int
indices instead ofunsigned int
in parallel for loops. - Disable PCL octree compression module on Windows with MSVC <= 2015 as it leads to linking issues.
- Fix missing includes : they are strangely not needed on Linux, but missing on Windows.
- Do not use tricky
constexpr
declarations as MSVC 2015 does not fully support them, preventing compilation. - Generate Windows export symbols with CMake to enable linking on
LidarSlam
. - Fix install paths so that
LidarSlamPlugin
is auto-loaded andLidarSlam
is properly linked on Windows.