Difference between revisions of "ApCoCoALib:Working with CMake"

From ApCoCoAWiki
(New page: =Setting Initial Values= # File $AC_ROOT/configuration/CMakeOptions.mac.sts set (BOOST_ROOT "/Users/shellcomputer/builds_AC2.0/local/boost_1_39_0" CACHE PATH "Boost Root") set (CM...)
 
 
Line 1: Line 1:
 
=Setting Initial Values=
 
=Setting Initial Values=
  
 +
Please note also the files configuration/examples/cmake-config.*.* in the ApCoCoA repository.
  
 
   # File $AC_ROOT/configuration/CMakeOptions.mac.sts  
 
   # File $AC_ROOT/configuration/CMakeOptions.mac.sts  
Line 21: Line 22:
 
   $> cmake -C $AC_ROOT/configuration/CMakeOptions.mac.sts ..
 
   $> cmake -C $AC_ROOT/configuration/CMakeOptions.mac.sts ..
 
   $> make
 
   $> make
 +
 +
For verbose make output, call
 +
 +
  $> VERBOSE=1 make

Latest revision as of 16:08, 29 March 2010

Setting Initial Values

Please note also the files configuration/examples/cmake-config.*.* in the ApCoCoA repository.

 # File $AC_ROOT/configuration/CMakeOptions.mac.sts 
 set (BOOST_ROOT "/Users/shellcomputer/builds_AC2.0/local/boost_1_39_0" CACHE PATH "Boost Root")
 set (CMAKE_CXX_FLAGS "-m64" CACHE STRING "Flags on Mac")
 set (COCOA_ROOT "/Users/shellcomputer/CoCoA-Releases/CoCoALib-0.9928" CACHE STRING "CoCoA Root")
 set (GMP_LIBRARY_DIR "/usr/local/lib/libgmp.a" CACHE PATH "GMP dir")
 set (GMP_LIBRARY "/usr/local/lib/libgmp.a" CACHE PATH "GMP dir")

in $AC_ROOT:

 $> mkdir build
 $> cd build
 $> ccmake -C $AC_ROOT/configuration/CMakeOptions.mac.sts ..

or, if you want to skip configuration via curses:

 $> mkdir build
 $> cd build
 $> cmake -C $AC_ROOT/configuration/CMakeOptions.mac.sts ..
 $> make

For verbose make output, call

 $> VERBOSE=1 make