Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4003CMD-building/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
16 lines (13 sloc)
841 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 4003CEM-compiling | |
## Compiling by hand | |
Compile the main.cpp file into an executable called “byhand” using the 3 separate compile commands needed. | |
This executable should be placed in the bin/ directory. | |
## Compiling with cmake | |
Compile the main.cpp file into an executable using the supplied cmake project file. | |
The project file has been set up to produce and executable called "main". | |
This should be all the information needed to compile it. | |
## Editing cmake | |
The files passwords.h, passwords.cpp and validate.cpp have been provided for you. | |
passwords.h and passwords.cpp contain a pair of functions, validate.cpp contains a main() that uses those functions. | |
Edit your CMakeLists.txt file to compile validate.cpp into an executable program called validate. | |
passwords.h/.cpp should be treated as a library that is used by validate.cpp. |