CMake: Difference between revisions
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 | '''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 | # Retrieve the appropriate binary from https://www.cmake.org/download. | ||
# You can choose to automatically modify the PATH | # 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: | There are 2 options: | ||
* Use CMake from the command line if it has been added to your path. | * Use CMake from the command line if it has been added to your path. | ||
* Use the CMake | * Use the CMake GUI located in the bin directory within the install directory. | ||
Configuring the Compiler Option: | Configuring the Compiler Option: | ||
* With the GUI | * 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 | * 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.
- Retrieve the appropriate binary from https://www.cmake.org/download.
- 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.