Home > Back-end >  Have a familiar with cmake?
Have a familiar with cmake?

Time:12-02

I downloaded the compiler (7), a project project no CMakeLists. TXT file,
See https://bitbucket.org/chromiumembedded/cef/src/c95b92f1e8702ad4a74c4251d5d698f417a21717/libcef_dll/CMakeLists.txt.in? The at=master

Took some CMakeLists. TXT. In the file, looks like used to generate CMakeLists. TXT of
But how can from CMakeLists. TXT. In generating CMakeLists. TXT?

Try to change name directly, but deny. Cmake in the inside of the grammar, such as this, tip:
CMake Error at libcef_dll/CMakeLists. TXT: 20:
Parse error. The Expected a command name, got unquoted argument with text
"{{".
CMakeLists. TXT. In the corresponding contents as follows:
Set (CEF_TARGET libcef_dll_wrapper)

{{
'the 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'
],
}}


The above is the problem. In file whether cmake list file, how to generate?

CodePudding user response:

Read the latest version of CMake online help,

CodePudding user response:

CMakeLists. TXT file is usually written,. In the file on the Internet only find two projects, so are the other writing python scripts, generate CMakeLists. TXT file,
If you are not very complicated project, such as only supports the Windows platform, handwritten don't trouble,

CodePudding user response:

Be sure to use cmake? Can also create a vs project, then the source code, lib library configuration is good, can generate the file,

CodePudding user response:

Look carefully before compiling project shows that the file is not allow you to directly use,

https://bitbucket.org/chromiumembedded/cef/wiki/BranchesAndBuilding.md#markdown-header-automated-method

The Automated Method section,

CodePudding user response:

The building Lord solved? I also encountered this problem now
  • Related