CMake: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
CMake installation and usage for Windows.
CMake installation and usage for Windows.


Installing CMake:
==Installing CMake==
# Retrieve the appropriate binary from http://www.cmake.org/
'''Note:''' As of version 3.4, CMake requires administrative privilege to install even when selecting your home directory as the location. If you want to install CMake on a UMIACS-supported system (i.e. you are a non-admin), please send mail to staff to schedule a time where we can stop by and provide admin credentials.
# Start the installer and choose a directory within your Home directory
# Retrieve the appropriate binary from https://www.cmake.org/download.
# You can choose to automatically modify the PATH Variable so you can call CMake from the command line.
# Start the installer and choose a directory within your home directory.
 
#* You can choose to automatically modify the [[PATH]] variable so you can call CMake from the command line.
Using CMake:


==Using CMake==
There are 2 options:
There are 2 options:
* Use CMake from the command line if it has been added to your path. More info here: [[PATH]]
* Use CMake from the command line if it has been added to your path.
* Use the CMake gui located in the bin directory within the install directory.  
* Use the CMake GUI located in the bin directory within the install directory.  
Configuring the Compiler Option:
Configuring the Compiler Option:
* With the GUI click configure and choose the compiler which has been installed on your system(Some version of Visual Studio).
* With the GUI: Click configure and choose the compiler which has been installed on your system (some version of Visual Studio).
* With the command line pass in the right compiler using the -G option. Typing cmake without any options will also display basic help.
* With the command line: Pass in the right compiler using the -G option. Typing cmake without any options will also display basic help.

Latest revision as of 20:59, 7 March 2018

CMake installation and usage for Windows.

Installing CMake

Note: As of version 3.4, CMake requires administrative privilege to install even when selecting your home directory as the location. If you want to install CMake on a UMIACS-supported system (i.e. you are a non-admin), please send mail to staff to schedule a time where we can stop by and provide admin credentials.

  1. Retrieve the appropriate binary from https://www.cmake.org/download.
  2. Start the installer and choose a directory within your home directory.
    • You can choose to automatically modify the PATH variable so you can call CMake from the command line.

Using CMake

There are 2 options:

  • Use CMake from the command line if it has been added to your path.
  • Use the CMake GUI located in the bin directory within the install directory.

Configuring the Compiler Option:

  • With the GUI: Click configure and choose the compiler which has been installed on your system (some version of Visual Studio).
  • With the command line: Pass in the right compiler using the -G option. Typing cmake without any options will also display basic help.