add_library(foo foo.cpp )
add_custom_target(bar DEPENDS foo)
How to create alias for targets using CMake?
题
Suppose that I've got the following library:
add_library(myLib STATIC ${SRC_FILES})
In order to make this lib, I have to execute the following command:
make myLib
How can I create an alias for myLib
, like lib
, so that executing the following line makes the same target?
make lib
解决方案
不隶属于 StackOverflow