I have compiled small_gicp from the source code under the MinGW-w64 environment on Windows 10.
Then I try to compile the demo code 01_basic_registration.cpp and run it. CMakeLists.txt file of this code is like this.
cmake_minimum_required(VERSION 3.14.0)
project(small_gicp_demo LANGUAGES C CXX VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Specify to use the GCC compiler
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
# Find OpenMP
find_package(OpenMP)
include_directories(./3rdparty ./3rdparty/Eigen3/include/eigen3)
add_executable(small_gicp_demo main.cpp)
# Add your executable and link OpenMP if it's found
if(OpenMP_CXX_FOUND)
target_link_libraries(small_gicp_demo PUBLIC OpenMP::OpenMP_CXX)
endif()
target_link_directories(small_gicp_demo PUBLIC)
target_link_libraries(small_gicp_demo PUBLIC libsmall_gicp.dll.a)
The cmake command configure is ok. But fail to compile when I do make. It told me cannot find -lsmall_gicp. Could you help me?
I have compiled small_gicp from the source code under the MinGW-w64 environment on Windows 10.
Then I try to compile the demo code
01_basic_registration.cpp
and run it. CMakeLists.txt file of this code is like this.The cmake command configure is ok. But fail to compile when I do make. It told me cannot find -lsmall_gicp. Could you help me?