Skip to content

Libraries to include under Windows VSIDE #3903

Discussion options

You must be logged in to vote

After installing OR-Tools on your system as you have already did, in a clean directory with a CMakeLists.txt as:

cmake_minimum_required(VERSION 3.14)
project(myproj VERSION 1.0)

find_package(ortools CONFIG REQUIRED)

add_executable(myapp main.cpp)
target_link_libraries(myapp ortools::ortools)

and a main.cpp file containing some OR-Tools use should work. Also as noted in the documentation, you might need to supply a CMAKE_PREFIX_PATH.

It seems like the cmake_or-tools example project in your message fetches OR-Tools from Github and builds it from scratch, that is what you were trying to avoid when you were installing OR-Tools on your system. If fetching and building OR-Tools for your ever…

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@TryerGit
Comment options

@ozan-cb
Comment options

@TryerGit
Comment options

@ozan-cb
Comment options

Answer selected by TryerGit
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TryerGit
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants