Tags:
create new tag
view all tags
To create an external build (i.e. executables compile in a directory different from source):
  1. navigate to the directory where you would like your build to be placed
  2. call cmake, and supply the root directory of the source directory as the parameter (specifically, the location of the CMakeLists.txt file)
  3. afterwards, simply type make, and everything should hopefully work...

e.g. Your source directory

  • some_dir\ngs_aligner\src
Your build directory
  • some_dir\ngs_aligner\build

In some_dir\ngs_aligner\build, simply type:

  • cmake ..\src

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
Topic revision: r1 - 2010-05-04 - jujubix
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback