blob: 5497fffb225fe307528e7a7fad63200b65d8fdb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Fedora's cmake file for rply
# http://pkgs.fedoraproject.org/gitweb/?p=rply.git;a=blob;f=rply_CMakeLists.txt
PROJECT(rply)
cmake_minimum_required(VERSION 2.6)
SET(RPLY_LIB_MAJOR_VERSION 1)
SET(RPLY_LIB_MINOR_VERSION 01)
SET(RPLY_CMAKE_DIR ${CMAKE_SOURCE_DIR}/CMake/ )
SET(RPLY_LIBRARY librply.so )
add_library(rply SHARED rply.c )
set_target_properties( rply PROPERTIES
VERSION ${RPLY_LIB_MAJOR_VERSION}.${RPLY_LIB_MINOR_VERSION}
SOVERSION ${RPLY_LIB_MAJOR_VERSION}
)
include_directories( ${CMAKE_SOURCE_DIR} )
add_executable(rply_convert etc/convert.c )
add_executable(rply_dump etc/dump.c )
add_executable(rply_sconvert etc/sconvert.c )
target_link_libraries (rply_convert rply)
target_link_libraries (rply_dump rply)
target_link_libraries (rply_sconvert rply)
# Installs the header files
install(FILES rply.h DESTINATION include/rply)
# Installs the target file
install(TARGETS rply LIBRARY DESTINATION lib${LIB_SUFFIX})
install(TARGETS rply_convert RUNTIME DESTINATION bin)
install(TARGETS rply_dump RUNTIME DESTINATION bin)
install(TARGETS rply_sconvert RUNTIME DESTINATION bin)
#This should be the last line of the project
SUBDIRS( CMake/export )
|