获取CMake库的其他导出变量
#2478
Replies: 1 comment 6 replies
-
通常你得自己 add_defines() 下,在你的 xmake.lua 里面,如果走的 package 集成,那么 package 里面,add_defines 自己配置下 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
xmake可以自动的链接cmake提供的库,但是有些cmake库可能还会导出一些其他的变量作为他用,我举个例子,你引用了一个TESTCMAKELIB库,在你自己的cmake中你可能需要
add_definitions(${TESTCMAKELIB_DEFINITIONS})
这样一个步骤。如果在xmake中,我如何获得TESTCAMELIB_DEFINITIONS
这个变量呢?Beta Was this translation helpful? Give feedback.
All reactions