towr icon indicating copy to clipboard operation
towr copied to clipboard

CMake for other projects

Open junzengx14 opened this issue 4 years ago • 0 comments

It might be a dummy question about CMake, I followed the instructions on the README

find_package(towr 1.2 REQUIRED)
add_executable(main main.cpp) # Your custom variables, costs and constraints added to TOWR
target_link_libraries(main PUBLIC towr::towr) # adds include directories and libraries

so basically, towr::towr is just for alias naming? If I want to use nlp_formulation.h and other header files for an independent project, basically, I could just put those following lines into cmake?

find_package(towr 1.2 REQUIRED)
target_link_libraries(main PUBLIC towr) # adds include directories and libraries

Thank you so much for your response!

junzengx14 avatar Jun 25 '20 13:06 junzengx14