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
有帮助吗?

解决方案

add_library(foo foo.cpp )
add_custom_target(bar DEPENDS foo)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top