有没有熟悉cmake的啊?
3m2u 2017-09-19 01:39:49 我下载了一个项目编译(win7) 。项目里没有CMakeLists.txt文件。
见 https://bitbucket.org/chromiumembedded/cef/src/c95b92f1e8702ad4a74c4251d5d698f417a21717/libcef_dll/CMakeLists.txt.in?at=master
带了些 CMakeLists.txt.in 的文件,看起来像是用来生成 CMakeLists.txt的
但是怎么能从CMakeLists.txt.in生成 CMakeLists.txt呢?
试着直接改名字,但cmake不认.in里面的语法。比如下面这段,提示:
CMake Error at libcef_dll/CMakeLists.txt:20:
Parse error. Expected a command name, got unquoted argument with text
"{{".
CMakeLists.txt.in里面对应的内容为:
set(CEF_TARGET libcef_dll_wrapper)
{{
'prefix': 'libcef',
'library': '${CEF_TARGET}',
'append_macro': 'LIBCEF_APPEND_PLATFORM_SOURCES',
'includes': [
'includes_common',
'autogen_cpp_includes',
'includes_capi',
'autogen_capi_includes',
'includes_wrapper',
'includes_win:WINDOWS',
'includes_mac:MACOSX',
'includes_linux:LINUX',
'libcef_dll_wrapper_sources_base',
'libcef_dll_wrapper_sources_common',
'autogen_client_side',
],
}}
问题是上面的.in文件到底是不是cmake的list文件,如何才能生成?