Mercurial > hg > freeDiameter
view extensions/_sample/CMakeLists.txt @ 931:155d45d06530 1.1.6
Updated copyright information
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sun, 03 Mar 2013 09:15:36 +0100 |
parents | 34373acfbc6a |
children | b415d1384e0d |
line wrap: on
line source
# The sample extension PROJECT("Sample extension") # Overwrite the debug level for the extension code if configured OPTION(DEBUG_LEVEL__SAMPLE "Overwrite debug level for the extension _sample if defined (valid values: FULL, ANNOYING, CALL...)" OFF) IF (DEBUG_LEVEL__SAMPLE) ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL__SAMPLE}) ENDIF (DEBUG_LEVEL__SAMPLE) IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug") MARK_AS_ADVANCED(DEBUG_LEVEL__SAMPLE) ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug") # Compile as a module FD_ADD_EXTENSION(dbg_sample sample.c hello.cpp fini.c) #### ## INSTALL section ## # Uncomment the following lines to have the extension installed # INSTALL(TARGETS dbg_sample # LIBRARY DESTINATION ${INSTALL_EXTENSIONS_SUFFIX} # COMPONENT freeDiameter-debug-tools)