Navigation


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

    r300 r304  
    5252        MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent")
    5353Endif ( NOT GCRYPT_INCLUDE_DIR )
     54MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR)
    5455INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR})
    5556
     
    6465TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS})
    6566
    66 # The daemon is to be installed as part of the freeDiameter-daemon component.
    67 INSTALL(TARGETS freeDiameterd
    68         RUNTIME DESTINATION bin
    69         COMPONENT freeDiameter-daemon)
    70 
    7167# Save the list of files, if needed
    7268SET(FD_COMMON_SRC ${FD_COMMON_SRC} PARENT_SCOPE)
     
    7470
    7571# The unary tests directory
    76 OPTION(SKIP_TESTS "Skip compilation of the tests?" OFF)
     72OPTION(SKIP_TESTS "Skip compilation of the tests?" ON)
    7773IF ( NOT SKIP_TESTS )
    7874        SUBDIRS(tests)
    7975ENDIF ( NOT SKIP_TESTS )
     76IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
     77  MARK_AS_ADVANCED(SKIP_TESTS)
     78ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
     79
     80
     81####
     82## INSTALL section ##
     83
     84INSTALL(TARGETS freeDiameterd
     85        RUNTIME DESTINATION bin
     86        COMPONENT freeDiameter-daemon)
Note: See TracChangeset for help on using the changeset viewer.