Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added verification information

...

Code Block
themeEmacs
titleCMake command examples
linenumberstrue
# configure and generate a production package
cmake ..
make package

# configure and generate a development package
cmake .. -DDEV_PKG=1
make package

# configure and install in an alternate directory, and install transport libraries
cmake .. -DEV_PKG=1 -DCMAKE_INSTALL_PREFIX=/tmp/$LOGNAME/ -DPACK_EXTERNALS
make install

# configure and install in the preferred system lib/include directory path; builds both package types
cmake .. -DDEV_PKG=1
make install
cmake .. 
make install


Verification

Before building a package, or installing, the unit tests can be executed to verify that the repo clone is intact and working on the system. Unit tests are located in the test directory and can be executed by running the unit_test.ksh script (requires Kshell).  On a Mac, the command line option -A must be added to force the unit tests to build without the epoll support/tests.   One of the tests requires about 30 seconds to execute (on some hardware), and certainly should complete in less than 60 seconds.  If a unit test hangs, it is likely a bug in the select/poll timeout tests which isn't timing out. If this occurs please open a bug report.