view libfreeDiameter/CMakeLists.txt @ 300:71e508379671

Initial test for 'make install' command
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 13 May 2010 17:10:51 +0900
parents 8773740401a5
children ad3c46016584
line wrap: on
line source

# Name of the subproject
Project("libfreeDiameter" C)

# List of source files for the library
SET(LFD_SRC
	libfD.h
	dictionary.c
	dispatch.c
	fifo.c
	init.c
	lists.c
	log.c
	messages.c
	rt_data.c
	sessions.c
	signal.c
	)

# Build as a shared library
ADD_LIBRARY(libfreeDiameter SHARED ${LFD_SRC})

# Avoid the liblib name
SET_TARGET_PROPERTIES(libfreeDiameter PROPERTIES OUTPUT_NAME "freeDiameter")

# The library itself needs other libraries 
TARGET_LINK_LIBRARIES(libfreeDiameter ${FD_LIBS})

# The library is to be installed as part of the freeDiameter-common component.
INSTALL(TARGETS libfreeDiameter
	LIBRARY DESTINATION lib
	COMPONENT freeDiameter-common)

# Save the list of files for testcases in the daemon's directory
SET(LFD_SRC ${LFD_SRC} PARENT_SCOPE)

"Welcome to our mercurial repository"