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

add_subdirectory( interfaces )

include_directories(  ${GPGME_INCLUDES} )


########### 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_automoc(gpgme ${gpgme_LIB_SRCS})

kde4_add_library(gpgme++ SHARED ${gpgme_LIB_SRCS})

#Laurent test it !
target_link_libraries(gpgme++ ${KDE4_KDECORE_LIBS} ${GPGME_LIBRARIES})

set_target_properties(gpgme++ PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS gpgme++  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 
   DESTINATION ${INCLUDE_INSTALL_DIR}/gpgme++ )


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

add_subdirectory( interfaces )

include_directories(  ${GPGME_INCLUDES} )


########### 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_automoc(${gpgme_LIB_SRCS})

kde4_add_library(gpgme++ SHARED ${gpgme_LIB_SRCS})

#Laurent test it !
target_link_libraries(gpgme++ ${KDE4_KDECORE_LIBS} ${GPGME_LIBRARIES})

set_target_properties(gpgme++ PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS gpgme++  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 
   DESTINATION ${INCLUDE_INSTALL_DIR}/gpgme++ )

Apply Alex patch (now we can use enable-final argument some module compiles with enable-final now) As discussed with Alex it's not necessary to have program name into automoc macro
Apply Alex patch (now we can use enable-final argument
some module compiles with enable-final now)
As discussed with Alex it's not necessary to have program name
into automoc macro

svn path=/trunk/KDE/kdepim/kioslave/; revision=598343
