You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
3.6 KiB
124 lines
3.6 KiB
14 years ago
|
#################################################
|
||
|
#
|
||
|
# (C) 2010 Serghei Amelian
|
||
|
# serghei (DOT) amelian (AT) gmail.com
|
||
|
#
|
||
|
# Improvements and feedback are welcome
|
||
|
#
|
||
|
# This file is released under GPL >= 2
|
||
|
#
|
||
|
#################################################
|
||
|
|
||
|
add_subdirectory( vcard )
|
||
|
add_subdirectory( vcardparser )
|
||
|
add_subdirectory( formats )
|
||
|
add_subdirectory( plugins )
|
||
|
|
||
|
include_directories(
|
||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/vcard/include
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/vcard/include/generated
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/vcardparser
|
||
|
|
||
|
# external includes
|
||
|
${TQT_INCLUDE_DIRS}
|
||
|
${CMAKE_BINARY_DIR}
|
||
13 years ago
|
${CMAKE_BINARY_DIR}/tdecore
|
||
14 years ago
|
${CMAKE_SOURCE_DIR}
|
||
|
${CMAKE_SOURCE_DIR}/dcop
|
||
13 years ago
|
${CMAKE_SOURCE_DIR}/tdecore
|
||
|
${CMAKE_SOURCE_DIR}/tdeui
|
||
12 years ago
|
${CMAKE_SOURCE_DIR}/tdeio
|
||
|
${CMAKE_SOURCE_DIR}/tdeio/tdeio
|
||
14 years ago
|
${CMAKE_SOURCE_DIR}/kab
|
||
|
)
|
||
|
|
||
|
link_directories(
|
||
|
${TQT_LIBRARY_DIRS}
|
||
|
)
|
||
|
|
||
|
|
||
|
##### headers ###################################
|
||
|
|
||
|
install( FILES
|
||
|
address.h addressbook.h addresseedialog.h
|
||
|
agent.h distributionlist.h distributionlistdialog.h
|
||
|
distributionlisteditor.h errorhandler.h field.h
|
||
|
format.h formatfactory.h formatplugin.h geo.h key.h
|
||
|
phonenumber.h picture.h plugin.h resource.h secrecy.h
|
||
|
resourceselectdialog.h sound.h stdaddressbook.h
|
||
|
timezone.h vcardconverter.h vcardformat.h lock.h
|
||
|
vcardformatplugin.h ldifconverter.h addresslineedit.h
|
||
|
ldapclient.h addresseelist.h locknull.h ldif.h
|
||
|
ldapurl.h ldapconfigwidget.h sortmode.h
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/addressee.h
|
||
12 years ago
|
DESTINATION ${INCLUDE_INSTALL_DIR}/tdeabc )
|
||
14 years ago
|
|
||
|
|
||
|
##### other data ################################
|
||
|
|
||
12 years ago
|
install( FILES tdeab2tdeabc.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
|
||
12 years ago
|
install( FILES kabc_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/tderesources )
|
||
12 years ago
|
install( FILES countrytransl.map DESTINATION ${DATA_INSTALL_DIR}/tdeabc )
|
||
14 years ago
|
|
||
|
|
||
|
##### generated files ###########################
|
||
|
# FIXME this hack make compatibility with out-of-source mode
|
||
|
|
||
|
file( COPY
|
||
|
scripts/makeaddressee scripts/addressee.src.cpp
|
||
|
scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp
|
||
|
DESTINATION scripts )
|
||
|
|
||
|
add_custom_command(
|
||
|
OUTPUT addressee.cpp addressee.h field.cpp
|
||
|
COMMAND perl
|
||
|
ARGS makeaddressee
|
||
|
DEPENDS scripts/addressee.src.cpp scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp
|
||
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts
|
||
|
)
|
||
|
|
||
|
|
||
12 years ago
|
##### tdeabc ######################################
|
||
14 years ago
|
|
||
12 years ago
|
set( target tdeabc )
|
||
14 years ago
|
|
||
|
set( ${target}_SRCS
|
||
|
address.cpp addressbook.cpp addressee.cpp addresseedialog.cpp
|
||
|
agent.cpp distributionlist.cpp distributionlistdialog.cpp
|
||
|
distributionlisteditor.cpp errorhandler.cpp field.cpp
|
||
|
formatfactory.cpp geo.cpp key.cpp phonenumber.cpp
|
||
|
picture.cpp plugin.cpp resource.cpp resourceselectdialog.cpp
|
||
|
secrecy.cpp sound.cpp stdaddressbook.cpp timezone.cpp
|
||
|
vcard21parser.cpp vcardconverter.cpp vcardformat.cpp
|
||
|
vcardformatimpl.cpp vcardformatplugin.cpp ldifconverter.cpp
|
||
|
addresslineedit.cpp ldapclient.cpp addresseelist.cpp
|
||
|
vcardtool.cpp addresseehelper.cpp lock.cpp locknull.cpp
|
||
|
ldif.cpp ldapurl.cpp ldapconfigwidget.cpp sortmode.cpp
|
||
|
addresseehelper.skel
|
||
|
)
|
||
|
|
||
|
tde_add_library( ${target} SHARED AUTOMOC
|
||
|
SOURCES ${${target}_SRCS}
|
||
|
VERSION 1.2.0
|
||
12 years ago
|
LINK vcards-static vcard-shared tdeio-shared tderesources-shared
|
||
14 years ago
|
DEPENDENCIES addressee.h dcopidl
|
||
|
DESTINATION ${LIB_INSTALL_DIR}
|
||
|
)
|
||
|
|
||
|
|
||
12 years ago
|
##### tdeab2tdeabc ##################################
|
||
14 years ago
|
|
||
12 years ago
|
set( target tdeab2tdeabc )
|
||
14 years ago
|
|
||
|
set( ${target}_SRCS
|
||
12 years ago
|
tdeab2tdeabc.cpp
|
||
14 years ago
|
)
|
||
|
|
||
|
tde_add_executable( ${target}
|
||
|
SOURCES ${${target}_SRCS}
|
||
12 years ago
|
LINK kab-static tdeabc-shared
|
||
14 years ago
|
DESTINATION ${BIN_INSTALL_DIR}
|
||
|
)
|