ethz-adrl / towr

A light-weight, Eigen-based C++ library for trajectory optimization for legged robots.
http://wiki.ros.org/towr
BSD 3-Clause "New" or "Revised" License
929 stars 233 forks source link

CMake for other projects #76

Open junzengx14 opened 4 years ago

junzengx14 commented 4 years ago

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!