cmake 从已有源代码生成 Xcode 项目

16 篇文章 0 订阅

– 未完…

cmake Xcode
这里使用的 texwork 源码,在 texwork 源码目录下创建 xcode 目录,cd 切换到 xcode 目录下,执行 cmake -G "Xcode" ..

codeMacBook-Pro:xcode codc$ cmake -G "Xcode" ..
-- The C compiler identification is AppleClang 6.0.0.6000057
-- The CXX compiler identification is AppleClang 6.0.0.6000057
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Git commit info updated
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /usr/local/bin/qmake (found version "4.8.7") 
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") 
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29") 
-- Found Hunspell: /usr/local/Cellar/hunspell/1.3.3/lib/libhunspell-1.3.dylib  
-- Could NOT find Lua (missing:  LUA_LIBRARIES LUA_INCLUDE_DIR) 
-- Generating DefaultBinaryPaths.h
/usr/texbin already present
/usr/local/bin ignored
/usr/local/texlive/2014/bin/x86_64-darwin already present
configuring default paths for TeX binaries as:
/Library/TeX/texbin:/usr/texbin:/usr/local/texlive/2016/bin/x86_64-darwin:/usr/local/texlive/2015/bin/x86_64-darwin:/usr/local/texlive/2014/bin/x86_64-darwin:/usr/local/texlive/2013/bin/x86_64-darwin:/usr/local/texlive/2012/bin/x86_64-darwin:/usr/local/texlive/2011/bin/x86_64-darwin:/usr/local/texlive/2010/bin/x86_64-darwin:/usr/local/bin:/usr/bin
-- Found Poppler: /usr/local/lib/libpoppler-qt4.dylib;/usr/local/Cellar/poppler/0.39.0/lib/libpoppler.dylib (found version "0.39.0") 
-- Found Fontconfig: /usr/local/Cellar/fontconfig/2.11.1/lib/libfontconfig.dylib
QtPDF has been configured:

  Version:                             0.1
  Qt version:                          4.8.7
  Compiler optimization:               Release

  Poppler-Qt backend:                  yes
  MuPDF backend:                       no
  Shared library:                      no
  Viewer application:                  no

  QtPDF will be installed to:
      /Applications

TeXworks has been configured:

  Version:                             0.5.0
  Git Commit:                          ab6330b (2016-03-17 09:54:49 -0400)
  Build ID:                            personal
  Qt version:                          4.8.7
  Compiler optimization:               Release

  Lua scripting plugin:                no
  Python scripting plugin:             no
    OS X system python:                yes

  TeXworks will be installed to:
      /Applications

-- Configuring done
-- Generating done
-- Build files have been written to: /Volumes/MACDOC/works/workspace/texworks/xcode

原文: https://www.johnlamp.net/cmake-tutorial-2-ide-integration.html#section-MacOsX


参考:

[1] https://cmake.org/cmake/help/v2.8.8/cmake.html#section_Generators
[2] https://cmake.org/cmake/help/v3.5/manual/cmake-generators.7.html
[3] https://cmake.org/pipermail/cmake/2006-December/012288.html
[4] http://stackoverflow.com/questions/16700415/cmake-generate-xcode-project-from-existing-sources
[5] http://stackoverflow.com/questions/4961123/cmake-xcode-generator-creates-a-project-that-cannot-build
[6] https://www.johnlamp.net/sources/chapter1-2.zip
[7] https://code.csdn.net/ppdouble/cmake-tutorial/tree/master/chapter1-2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值