Navigation


Changeset 304:ad3c46016584 in freeDiameter for extensions/_sample/CMakeLists.txt


Ignore:
Timestamp:
May 14, 2010, 5:26:53 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added install directives for cmake; also allow default directory to seek for extensions and configuration files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/_sample/CMakeLists.txt

    r170 r304  
    33
    44# Overwrite the debug level for the extension code if configured
    5 OPTION(DEBUG_LEVEL__SAMPLE "Overwrite debug level for the extension _sample if defined" OFF)
     5OPTION(DEBUG_LEVEL__SAMPLE "Overwrite debug level for the extension _sample if defined (valid values: FULL, ANNOYING, CALL...)" OFF)
    66IF (DEBUG_LEVEL__SAMPLE)
    77     ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL__SAMPLE})
    88ENDIF (DEBUG_LEVEL__SAMPLE)
     9IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
     10  MARK_AS_ADVANCED(DEBUG_LEVEL__SAMPLE)
     11ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
    912
    1013# Compile as a module
    1114FD_ADD_EXTENSION(dbg_sample sample.c fini.c)
     15
     16
     17####
     18## INSTALL section ##
     19
     20INSTALL(TARGETS dbg_sample
     21        LIBRARY DESTINATION ${DEFAULT_EXTENSIONS_PATH}
     22        COMPONENT freeDiameter-debug-tools)
Note: See TracChangeset for help on using the changeset viewer.