include_directories(  ${GPGME_INCLUDES} )

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-gpgme++.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gpgme++.h )

add_subdirectory( interfaces )


########### next target ###############

set(gpgme_LIB_SRCS 
	context.cpp key.cpp 
	trustitem.cpp 
	data.cpp 
	callbacks.cpp 
	eventloopinteractor.cpp 
	keylistresult.cpp            
	keygenerationresult.cpp 
	importresult.cpp
	decryptionresult.cpp 
	verificationresult.cpp 
	signingresult.cpp 
	encryptionresult.cpp 
	engineinfo.cpp
)


kde4_add_library(gpgmepp SHARED ${gpgme_LIB_SRCS})

target_link_libraries(gpgmepp ${GPGME_LIBRARIES})

set_target_properties(gpgmepp PROPERTIES
    VERSION ${GENERIC_LIB_VERSION}
    SOVERSION ${GENERIC_LIB_SOVERSION}
    OUTPUT_NAME gpgme++
 )
install(TARGETS gpgmepp  DESTINATION ${LIB_INSTALL_DIR})


########### install files ###############

install( FILES context.h key.h trustitem.h 
   eventloopinteractor.h data.h gpgmefw.h result.h keylistresult.h keygenerationresult.h 
   importresult.h decryptionresult.h verificationresult.h signingresult.h encryptionresult.h engineinfo.h gpgme++_export.h 
   DESTINATION ${INCLUDE_INSTALL_DIR}/gpgme++ )

include_directories(  ${GPGME_INCLUDES} )

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-gpgme++.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gpgme++.h )

add_subdirectory( interfaces )


########### next target ###############

set(gpgme_LIB_SRCS 
	context.cpp key.cpp 
	trustitem.cpp 
	data.cpp 
	callbacks.cpp 
	eventloopinteractor.cpp 
	keylistresult.cpp            
	keygenerationresult.cpp 
	importresult.cpp
	decryptionresult.cpp 
	verificationresult.cpp 
	signingresult.cpp 
	encryptionresult.cpp 
	engineinfo.cpp
)


kde4_add_library(gpgmepp SHARED ${gpgme_LIB_SRCS})

target_link_libraries(gpgmepp ${GPGME_LIBRARIES})

set_target_properties(gpgmepp PROPERTIES
    VERSION     1.0.0
    SOVERSION   1.0.0
    OUTPUT_NAME gpgme++
 )
install(TARGETS gpgmepp  DESTINATION ${LIB_INSTALL_DIR})


########### install files ###############

install( FILES context.h key.h trustitem.h 
   eventloopinteractor.h data.h gpgmefw.h result.h keylistresult.h keygenerationresult.h 
   importresult.h decryptionresult.h verificationresult.h signingresult.h encryptionresult.h engineinfo.h gpgme++_export.h 
   DESTINATION ${INCLUDE_INSTALL_DIR}/gpgme++ )

Use sensible versioning (5.0.0 isn't really a good idea, after 0.2.0 and 0.0.0 :)
Use sensible versioning (5.0.0 isn't really a good idea, after 0.2.0 and 0.0.0 :)

svn path=/trunk/KDE/kdepimlibs/; revision=692760
