> > |
META TOPICPARENT |
name="NGSAlignerProject" |
To create an external build (i.e. executables compile in a directory different from source):
- navigate to the directory where you would like your build to be placed
- call
cmake , and supply the root directory of the source directory as the parameter (specifically, the location of the CMakeLists.txt file)
- afterwards, simply type
make , and everything should hopefully work...
e.g.
Your source directory
Your build directory
-
some_dir\ngs_aligner\build
In some_dir\ngs_aligner\build , simply type:
Side note, to optimize the speed of your program, you can do a "Release" build (using the above example):
- navigate to the
build directory
- type
ccmake ..\src (note extra c )
- You should obtain an option screen
- Move to
CMAKE_BUILD_TYPE , press [enter] to edit
- Type "Release", [enter] to finish
- Hit [c] to confirm the change
- Hit [q] to quit
- type
make as usual...
- If all went well, your program is not optimized, and may run faster
|