Navigation


Changeset 320:53f912ce0f4e in freeDiameter for freeDiameter/CMakeLists.txt


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

Add shared object version information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/CMakeLists.txt

    r316 r320  
    4343                fdd.tab.h
    4444        )
     45       
     46# Save the list of files for the tests
     47SET(FD_COMMON_SRC ${FD_COMMON_SRC} PARENT_SCOPE)
     48SET(FD_COMMON_GEN_SRC ${FD_COMMON_GEN_SRC} PARENT_SCOPE)
     49
    4550
    4651# Require GNU TLS for building the daemon
     
    5560INCLUDE_DIRECTORIES(${GCRYPT_INCLUDE_DIR})
    5661
    57 # Building the executable
     62
     63# Build the executable
    5864ADD_EXECUTABLE(freeDiameterd ${FD_COMMON_SRC} ${FD_COMMON_GEN_SRC} main.c)
     65
     66# The version
     67SET_TARGET_PROPERTIES(freeDiameterd PROPERTIES
     68        VERSION ${FD_PROJECT_VERSION_MAJOR}.${FD_PROJECT_VERSION_MINOR}.${FD_PROJECT_VERSION_REV})
    5969
    6070# Add this to workaround an apparent bug in FreeBSD cmake (already defined in Linux)
     
    6474LINK_DIRECTORIES(${CURRENT_BINARY_DIR}/../libfreeDiameter)
    6575TARGET_LINK_LIBRARIES(freeDiameterd libfreeDiameter ${FD_LIBS})
    66 
    67 # Save the list of files, if needed
    68 SET(FD_COMMON_SRC ${FD_COMMON_SRC} PARENT_SCOPE)
    69 SET(FD_COMMON_GEN_SRC ${FD_COMMON_GEN_SRC} PARENT_SCOPE)
    7076
    7177# The unary tests directory
Note: See TracChangeset for help on using the changeset viewer.