Search 5,000,000+ questions and answers.

Frequently Asked Questions

edit] How do I use CMake to build LaTeX documents?

CMake FAQ - KitwarePublic
Use the following approach. Note that you have to set LATEX_COMPILE to LaTeX executable, DVIPDF_COMPILE to dvi to pdf converter. Also, the LaTeX source is TDocument.tex and the result is called TDocument.pdf. Note that this uses commands in CMake version 1.8 or later. PROJECT(Document) IF(LATEX_COMPILE) ADD_CUSTOM_COMMAND( OUTPUT ${Document_BINARY_DIR}/TDocument.dvi DEPENDS ${Document_BINARY_DIR}/TDocument.tex COMMAND ${LATEX_COMPILE} ARGS ${Document_SOURCE_DIR}/TDocument.
Related Questions

edit] Why does CMake use full paths, or can I copy my build tree?

CMake FAQ - KitwarePublic
configured header files may have full paths in them, and moving those files without re-configuring would cause upredictable behavior. because cmake supports out of source builds, if custom commands used relative paths to the source tree, they would not work when they are run in the build tree because the current directory would be incorrect. on Unix systems rpaths might be built into executables so they can find shared libraries at run time.
Related Questions

edit] What is CMake?

CMake FAQ - KitwarePublic
CMake is a cross-platform, open-source make system. CMake is used to control the software compilation process using simple platform-independent and compiler-independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, preprocessor generation, code generation, and template instantiation.
Related Questions

edit] I run an out-of-source build but CMake generates in-source anyway. Why?

CMake FAQ - KitwarePublic
This means that there is a CMakeCache.txt file in the source tree, possibly as part of an existing in-source build. If CMake is given the path to a directory with a CMakeCache.txt file, it assumes the directory is a build tree. Therefore if one runs "cmake ../mysrc" to build out-of-source but there is a mysrc/CMakeCache.txt file then cmake will treat mysrc as the build tree. This is a side-effect of the feature that allows "cmake ." to be used to regenerate a build tree.
Related Questions

edit] How do I use CMake to generate SWIG wrapper libraries?

CMake FAQ - KitwarePublic
CMake version 2 includes a module that supports the generation of SWIG wrapper libraries. The SWIG package defines the following macros: SWIG_ADD_MODULE and SWIG_LINK_LIBRARIES.
Related Questions

edit] Can I do "make uninstall" with CMake?

CMake FAQ - KitwarePublic
By default, CMake does not provide the "make uninstall" target, so you cannot do this. We do not want "make uninstall" to remove useful files from the system. If you want an "uninstall" target in your project, then nobody prevents you from providing one. You need to delete the files listed in install_manifest.txt file. Here is how to do it. First create file cmake_uninstall.cmake.in in the top-level directory of the project: IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.
Related Questions

edit] Can I use different settings for the new documents created by Inkscape?

FAQ - Inkscape Wiki
Yes. When you do File > New (Ctrl+N) or start a new Inkscape session, Inkscape loads the default template document which stores page format, grid and guide parameters, snapping and export settings, etc. It can even contain any pre-created objects. You can save any document as the default template by writing it to ~/.inkscape/templates/default.svg on Linux and [inkscape dir]/share/templates/default.svg on Windows. If you save it under any other name than default.
Related Questions

edit] I want a new feature in CMake. What should I do?

CMake FAQ - KitwarePublic
Please make sure to look at the old feature requests not to include duplicates, include detailed instructions of the feature and proposed implementation.
Related Questions

edit] Which regular expressions are supported by CMake?

CMake FAQ - KitwarePublic
When using MATCHES or MATCHALL in an IF command, or using any of the STRING(REGEX ...) commands, CMake expects regular expressions, not globs (wild cards). CMake uses the same regular expression engine above all platforms. Here are the meanings of the metacharacters: ^ Matches at beginning of a line $ Matches at end of a line .
Related Questions

What type of documents can you edit?

Some Frequently Asked Questions About Alphabetix's Editing a...
If you can write it, we can edit it! We edit dissertations, Master's theses, academic essays, admission essays, business copy and communications, eCommerce marketing, website content, technical documentation, fiction, non-fiction, and poetry.
Related Questions

What is Latex?

Latex - Frequently Asked Question - FloBeds.com
Latex is a milky white liquid composed of rubber particles dispersed in water. This material is whipped with air to form a foam, which is cured to make our mattresses.
Related Questions

edit] What is the most recent version covered by the Mastering CMake book?

CMake FAQ - KitwarePublic
The Mastering CMake version 2.2 book thoroughly covers CMake 2.2.3 and earlier. Since the printing of the book CMake 2.4 has been released but the book is by no means out of date. Updated FIND_PATH, FIND_PROGRAM, and FIND_FILE commands to be more powerful (cmake --help-command FIND_PATH)
Related Questions

edit] I set a cmake variable in my environment, but it didn't change anything. Why?

CMake FAQ - KitwarePublic
CMake build settings are stored in the CMake cache corresponding to a project's build tree. They are called CMake "cache entries" and have no relation to your command shell's environment variables. Use a CMake GUI (CMakeSetup on Windows or ccmake on UNIX) or the wizard mode (cmake -i) to edit cache entries. Initial values may also be specified for a build by using the -D command line argument to cmake when it is first run to produce a new build tree.
Related Questions

edit] I change CMAKE_C_COMPILER in the GUI but it changes back on the next configure step. Why?

CMake FAQ - KitwarePublic
Once a build tree is created with a given compiler it cannot be changed. There are a variety of implementation reasons for this policy. In order to choose a different compiler create a new build tree and set the CC and CXX environment variables to the compiler you want before running CMake.
Related Questions

edit] CMake does not generate a "make distclean" target. Why?

CMake FAQ - KitwarePublic
Some build trees created with GNU autotools have a "make distclean" target that cleans the build and also removes Makefiles and other parts of the generated build system. CMake does not generate a "make distclean" target because CMakeLists.txt files can run scripts and arbitrary commands; CMake has no way of tracking exactly which files are generated as part of running CMake. Providing a distclean target would give users the false impression that it would work as expected.
Related Questions

edit] Why are my CMake variables not updated in the GUI after a SET command?

CMake FAQ - KitwarePublic
The cache variables listed in the GUI when you press "Configure" are used to initialize the values seen by the code in CMakeLists.txt files. Changes made by the code are used during the configure step and seen by the generators but are not stored back into the cache. For example: SET(BUILD_SHARED_LIBS ON) will turn on building of shared libraries for the directory containing the command and all subdirectories, but the change will not appear in the GUI.
Related Questions

How can I print LaTeX documents?

Facilities - About ECE - Duke ECE
To print LaTeX files, you first have to convert your Tex file to a printable format, namely postscript. This a two-step process, first converting the TeX file to a Device-Independent format using the TeX interpreter: The "-P [printer name]" argument is optional; without it, printouts will go to the default printer (hp/hp161), located in the DATC lab.
Related Questions

I don't want to change my LaTeX documents, and still want to use the old psfig style. Can I do this?

ITSweb | Documentation | Desktop Publishing | LaTeX and TeX ...
NOTE: It is best to convert any old documents instead of letting them become outdated, please do so! However if you still insist on using old inputs, do something similar to the following before the old inputs are deleted! You may also consider downloading the latest versions of inputs that you like to use and use the latest version of LaTeX instead of relying on compatibility mode to be able to continue LaTeX'ing your documents.
Related Questions

Do you edit LaTeX files?

Stallard Scientific Editing
Yes, we have considerable experience in editing LaTeX files within Microsoft Word. Our editors generally work from the Word file and an accompanying PDF file of the manuscript.
Related Questions

edit] How do I get LaTeX references to be correct?

CMake FAQ - KitwarePublic
When your latex document contains references (e.g. \ref{...} command) you get to run two passes of latex. In the most general case, i.e. when additionally your document uses a bibtex bibliography, you shall need three passes of latex (and one pass of bibtex): The following code snippet illustrates how you can "pervert" the bibtex and latex generated auxilary files (.aux, .log, .dvi, .bbl...) to create an "artificial" set of CMake dependencies.
Related Questions

edit] Are Inkscape's SVG documents valid SVG?

FAQ - Inkscape Wiki
Yes. Inkscape does not yet support all features of SVG, but all files it generates are valid SVG (with the partial and temporary exception of flowed text, see below). All standard-conformant SVG renderers show them the same as in Inkscape. If they do not, it's a bug. If this bug is in Inkscape, we will fix it (especially if you help us by reporting it!).
Related Questions

edit] Can CMake set the Debugging/Working Directory property in Visual Studio projects?

CMake FAQ - KitwarePublic
No. The value of this property is not stored in the project files. It is stored in extra files created by the IDE when a solution is loaded (VS .NET 2003 uses a hidden .suo file next to the .sln solution file). The format of these files is not known to CMake and cannot be generated. In some versions of VS the files are binary and not human readable. The path to the SDK libs (user32.
Related Questions

Should I use latex or oil paint?

SOS Painting
Latex paint is a great choice for most instances, but there are still situations where a solvent-based paint may be preferable. To help decide which is best in your case, consider the following:
Related Questions

Should I use Plain TeX or LaTeX?

TeX Frequently Asked Questions
There’s no straightforward answer to this question. Many people swear by Plain TeX, and produce highly respectable documents using it (Knuth is an example of this, of course). But equally, many people are happy to let someone else take the design decisions for them, accepting a small loss of flexibility in exchange for a saving of brain power.
Related Questions

Why would I use a limewash instead of typical latex or oil-based paint?

Frequently Asked Questions about Historic Masonry
Limewashes represent the best of both form and function. They're beautiful and breathable, making them the perfect choice for both historic and new buildings. Unlike typical modern paints, they don't trap water and they age beautifully--instead of getting shabby, they develop a lovely mellow patina over time.
Related Questions

Biological Dentist Houston Dr.William P. Glaros D.D.S
We have done everything we can to make our office latex free, which includes gloves, “rubber” dam, polishing cups used by our hygienist, and plungers used in the local anesthetic carpules. We do not feel comfortable using the term “latex free” because we cannot be absolutely sure about every plunger, O-ring, and stopper used to dispense manufacturers products. That with which we directly touch our patients/clients is free of latex, and has been for years.
Related Questions

Can I use epcEdit to edit my HTML documents?

epcEdit 1.2 frequently asked questions
Yes, you can. However, more than 80% of all HTML documents on the web are invalid in the sense that they are not well-formed SGML documents, do not conform to the HTML DTDs, or include vendor-specific extensions that are not part of the HTML standards. This applies especially to many HTML documents that were created with WYSIWYG HTML editors. epcEdit will complain about errors in such documents or even refuse to load them.
Related Questions

How do I edit subgraphs of multiple graph documents using keyboard/macros?

FAQ 5
To edit a subgraph (e.g., X-bar Chart from the default compound graph created by STATISTICA) via the keyboard, use the key combination: CTRL+A to select the first subgraph (i.e., "object" on the graph); then, continue to use this same key combination to toggle through the set of subgraphs until highlighting the desired graph. Finally, use the combination: ALT+Enter to open this subgraph in its own window for editing.
Related Questions

edit] How can I set TEXINPUTS for a LaTeX compilation?

CMake FAQ - KitwarePublic
First note that most often you can avoid using TEXINPUTS by copying all the necessary files (.tex source file and included graphic files e.g. .eps files) from your PROJECT_SOURCE_DIR hirarchy to your PROJECT_BINARY_DIR subdir [refer to CONFIGURE_FILE with the COPYONLY flag set for copying files]. Since by default latex uses the current working directory as value for TEXINPUTS you should be all set.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact