How to use Meshlib library on windows by cmake?
I download build result in MeshLib GitHub Releases. I tried to use it in cmake project.
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(MeshBoolean CXX)
add_executable(MeshBoolean MeshBoolean.cpp)
target_include_directories(MeshBoolean PUBLIC D:/develop/meshlib/MeshLibDist_v3.0.6.229/install/include)
target_link_directories(MeshBoolean PUBLIC D:/develop/meshlib/MeshLibDist_v3.0.6.229/install/lib/Release)
target_link_libraries(MeshBoolean PRIVATE MRMesh gtest tbb12 OpenCTM jsoncpp openvdb fmt)
Error: MRMesh.dll could not be found. Can you give me an example of a cmake project on windows? I couldn't find the corresponding cmake file in MeshLib GitHub Releases, so I couldn't use find_package command.
Hello!
Current windows distribution is not configured for cmake projects, so your way is the only way possible now. Please note that dlls are located in D:/develop/meshlib/MeshLibDist_v3.0.6.229/install/app/Release.
Also, could you please specify more details of your error, does it happen when you try to launch your app or on build stage?
(Do you explicitly copy dlls to build directory?)