Hello, VideoRay

GSS Cmake

The motivation for GSS CMake is to create a common set of CMake configuration files and utilities for developers. This will simplify development and maintenance, but more importantly will initiate the same build across Greensea projects.  

GSS CMake Installation

gss_cmake is a package located in the GSS aptly repository.  To install use:

apt-get install gss_cmake

If your machine is not configured to use the GSS aptly repository see the following article: Package management

GSS CMake Maintenance

The source and package creation script are located in gssrepos under:

gssrepos/repos/gss_cmake

GSS CMake Use

After installation the gss_cmake package will be installed into /usr/local/share/cmake/gss_cmake.  An example of using gss_cmake to build a device interface is as follows:

1:
2:
3:
4:
5:
6:
cmake_minimum_required(VERSION 2.8)
# edit the project here
set(project_name gss_device
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GSS Device")
#Call the standard device cmake build
include(/usr/local/share/cmake/gss_cmake/gss_device-config.cmake)

All other required CMake calls are handled in the gss_device-config.cmake configuration file.

Article ID: 
108