Navigation


Changeset 304:ad3c46016584 in freeDiameter for extensions/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/CMakeLists.txt

    r283 r304  
    2020        MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent")
    2121Endif ( NOT GCRYPT_INCLUDE_DIR )
     22MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR)
    2223INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR})
    2324
     
    7778# Debug & test extensions
    7879
    79 OPTION(BUILD_SAMPLE "Build sample.fdx? (Simple extension to demonstrate extension mechanism, for developpers only)" OFF)
    80         IF (BUILD_SAMPLE)
    81            SUBDIRS(_sample)
    82         ENDIF (BUILD_SAMPLE)
    83 
    8480OPTION(BUILD_DBG_MONITOR "Build dbg_monitor.fdx? (display periodical debug information on the console)" OFF)
    8581        IF (BUILD_DBG_MONITOR)
     
    9288        ENDIF (BUILD_DBG_RT)
    9389
    94 OPTION(BUILD_TEST_ACCT "Build test_acct.fdx? (Receive Accounting-Requests and display the data, but no storage)" OFF)
    95         IF (BUILD_TEST_ACCT)
    96            SUBDIRS(test_acct)
    97         ENDIF (BUILD_TEST_ACCT)
    98 
    9990OPTION(BUILD_TEST_APP "Build test_app.fdx? (Testing application to send dummy message to another peer, for testing purpose only)" OFF)
    10091        IF (BUILD_TEST_APP)
     
    10293        ENDIF (BUILD_TEST_APP)
    10394
    104 OPTION(BUILD_TEST_RT_ANY "Build test_rt_any.fdx? (Routing extension randomly sending message to any peer available, for testing purpose only)" OFF)
    105         IF (BUILD_TEST_RT_ANY)
    106            SUBDIRS(test_rt_any)
    107         ENDIF (BUILD_TEST_RT_ANY)
     95# The following extension have very little use except for specific tests, so we disable them except in Debug configurations.
     96IF (CMAKE_BUILD_TYPE MATCHES "Debug")
     97        OPTION(BUILD_SAMPLE "Build sample.fdx? (Simple extension to demonstrate extension mechanism, for developpers only)" OFF)
     98                IF (BUILD_SAMPLE)
     99                   SUBDIRS(_sample)
     100                ENDIF (BUILD_SAMPLE)
     101
     102        OPTION(BUILD_TEST_ACCT "Build test_acct.fdx? (Receive Accounting-Requests and display the data, but no storage)" OFF)
     103                IF (BUILD_TEST_ACCT)
     104                   SUBDIRS(test_acct)
     105                ENDIF (BUILD_TEST_ACCT)
     106               
     107        OPTION(BUILD_TEST_RT_ANY "Build test_rt_any.fdx? (Routing extension randomly sending message to any peer available, for testing purpose only)" OFF)
     108                IF (BUILD_TEST_RT_ANY)
     109                   SUBDIRS(test_rt_any)
     110                ENDIF (BUILD_TEST_RT_ANY)
     111ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug")
     112
Note: See TracChangeset for help on using the changeset viewer.