docopt / docopt.cpp

C++11 port of docopt
Boost Software License 1.0
1.04k stars 146 forks source link

Better CMake #128

Open kunaltyagi opened 4 years ago

kunaltyagi commented 4 years ago

A uniform interface to access the libraries/headers without having to manually type in the include directory or the library name would be nice.

Several projects use ${project_NAME}_LIBRARIES variable for all the libraries along with set_target_properties(${target} PROPERTIES INTERFACE_COMPILE_...) to make it autodiscover.

Others use INTERFACE "$<BUILD_INTERFACE:...>" "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")