2006-10-02 09:59:51 +00:00
|
|
|
|
|
|
|
# base source files
|
|
|
|
|
2007-01-09 14:42:11 +00:00
|
|
|
|
2006-10-02 09:59:51 +00:00
|
|
|
SET( nonmoc_SOURCES
|
|
|
|
qca_tools.cpp
|
|
|
|
qca_plugin.cpp
|
|
|
|
qca_textfilter.cpp
|
|
|
|
qca_basic.cpp
|
2007-04-03 11:24:12 +00:00
|
|
|
support/logger.cpp
|
2006-10-02 09:59:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
SET( moc_SOURCES
|
|
|
|
qca_core.cpp
|
|
|
|
qca_publickey.cpp
|
|
|
|
qca_keystore.cpp
|
|
|
|
qca_securelayer.cpp
|
|
|
|
qca_securemessage.cpp
|
|
|
|
qca_default.cpp
|
2007-04-08 12:13:19 +00:00
|
|
|
qca_cert.cpp
|
2006-10-02 09:59:51 +00:00
|
|
|
support/qpipe.cpp
|
|
|
|
support/console.cpp
|
2007-01-20 07:05:31 +00:00
|
|
|
support/synchronizer.cpp
|
|
|
|
support/dirwatch/dirwatch.cpp
|
|
|
|
support/syncthread.cpp
|
2006-10-02 09:59:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (Q_WS_X11)
|
2006-10-03 14:09:13 +00:00
|
|
|
SET( nonmoc_SOURCES ${nonmoc_SOURCES} qca_systemstore_flatfile.cpp )
|
2006-10-02 09:59:51 +00:00
|
|
|
ENDIF(Q_WS_X11)
|
|
|
|
|
|
|
|
IF (WIN32)
|
2006-10-03 14:09:13 +00:00
|
|
|
SET( moc_SOURCES ${moc_SOURCES} qca_systemstore_win.cpp )
|
2006-10-02 09:59:51 +00:00
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
if(APPLE)
|
2006-10-03 14:09:13 +00:00
|
|
|
set( nonmoc_SOURCES ${nonmoc_SOURCES} qca_systemstore_mac.cpp)
|
2006-10-02 09:59:51 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
# Support files
|
2006-10-03 14:09:13 +00:00
|
|
|
#SET( qca_HEADERS ${qca_HEADERS} support/dirwatch/dirwatch_p.h )
|
2006-10-02 09:59:51 +00:00
|
|
|
|
|
|
|
IF (WIN32)
|
2006-11-16 13:07:08 +00:00
|
|
|
SET( moc_SOURCES ${moc_SOURCES} support/dirwatch//dirwatch_win.cpp )
|
2006-10-02 09:59:51 +00:00
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
IF (UNIX)
|
2006-10-03 14:09:13 +00:00
|
|
|
SET( moc_SOURCES ${moc_SOURCES} support/dirwatch//dirwatch_unix.cpp )
|
2006-10-02 09:59:51 +00:00
|
|
|
ENDIF(UNIX)
|
|
|
|
|
|
|
|
# Botan tools
|
2006-10-03 14:09:13 +00:00
|
|
|
SET( botan_BASE botantools/botan )
|
2006-10-02 09:59:51 +00:00
|
|
|
|
2007-01-09 14:42:11 +00:00
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR} support support/dirwatch ${botan_BASE} )
|
|
|
|
|
2006-10-02 09:59:51 +00:00
|
|
|
ADD_DEFINITIONS(
|
|
|
|
-DBOTAN_TYPES_QT
|
|
|
|
-DBOTAN_NO_INIT_H
|
|
|
|
-DBOTAN_NO_CONF_H
|
|
|
|
-DBOTAN_TOOLS_ONLY
|
|
|
|
-DBOTAN_MINIMAL_BIGINT
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(
|
|
|
|
-DBOTAN_MP_WORD_BITS=32
|
2007-04-19 22:08:49 +00:00
|
|
|
-DBOTAN_KARAT_MUL_THRESHOLD=12
|
|
|
|
-DBOTAN_KARAT_SQR_THRESHOLD=12
|
2006-10-02 09:59:51 +00:00
|
|
|
)
|
2006-11-16 13:07:08 +00:00
|
|
|
if(WIN32)
|
|
|
|
ADD_DEFINITIONS( -DQCA_MAKEDLL )
|
|
|
|
endif(WIN32)
|
|
|
|
|
2006-10-02 09:59:51 +00:00
|
|
|
|
|
|
|
SET( botan_SOURCES
|
|
|
|
${botan_BASE}/util.cpp
|
|
|
|
${botan_BASE}/exceptn.cpp
|
|
|
|
${botan_BASE}/mutex.cpp
|
|
|
|
${botan_BASE}/mux_qt/mux_qt.cpp
|
2007-04-19 22:08:49 +00:00
|
|
|
${botan_BASE}/charset.cpp
|
2006-10-02 09:59:51 +00:00
|
|
|
${botan_BASE}/defalloc.cpp
|
|
|
|
${botan_BASE}/mp_comba.cpp
|
|
|
|
${botan_BASE}/mp_mul.cpp
|
|
|
|
${botan_BASE}/mp_shift.cpp
|
|
|
|
${botan_BASE}/mp_misc.cpp
|
|
|
|
${botan_BASE}/divide.cpp
|
|
|
|
${botan_BASE}/big_base.cpp
|
|
|
|
${botan_BASE}/big_code.cpp
|
|
|
|
${botan_BASE}/big_io.cpp
|
|
|
|
${botan_BASE}/big_ops2.cpp
|
|
|
|
${botan_BASE}/big_ops3.cpp
|
2007-04-19 22:08:49 +00:00
|
|
|
${botan_BASE}/bit_ops.cpp
|
|
|
|
${botan_BASE}/libstate.cpp
|
|
|
|
${botan_BASE}/mem_pool.cpp
|
|
|
|
${botan_BASE}/modules.cpp
|
|
|
|
${botan_BASE}/mp_asm.cpp
|
|
|
|
${botan_BASE}/mp_mulop.cpp
|
|
|
|
${botan_BASE}/parsing.cpp
|
2006-10-02 09:59:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IF (UNIX)
|
|
|
|
SET( botan_SOURCES ${botan_SOURCES} ${botan_BASE}/ml_unix/mlock.cpp)
|
|
|
|
SET( botan_SOURCES ${botan_SOURCES} ${botan_BASE}/alloc_mmap/mmap_mem.cpp)
|
|
|
|
ENDIF (UNIX)
|
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
SET( botan_SOURCES ${botan_SOURCES} ${botan_BASE}/ml_win32/mlock.cpp)
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
MY_AUTOMOC( moc_SOURCES )
|
|
|
|
SET( SOURCES ${SOURCES} ${moc_SOURCES} ${nonmoc_SOURCES} )
|
|
|
|
|
|
|
|
SET( SOURCES ${SOURCES} ${botan_SOURCES})
|
|
|
|
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_core.h")
|
2007-04-08 12:46:16 +00:00
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_cert.h")
|
2006-10-02 09:59:51 +00:00
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_keystore.h")
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qcaprovider.h")
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_publickey.h")
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_securelayer.h")
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_securemessage.h")
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qca_support.h")
|
|
|
|
qt4_wrap_cpp( SOURCES "${qca_INCLUDEDIR}/QtCrypto/qpipe.h")
|
2006-10-03 14:09:13 +00:00
|
|
|
qt4_wrap_cpp( SOURCES "support/dirwatch/dirwatch_p.h")
|
2006-10-02 09:59:51 +00:00
|
|
|
|
|
|
|
ADD_LIBRARY(qca SHARED ${SOURCES})
|
|
|
|
TARGET_LINK_LIBRARIES(qca ${QT_QTCORE_LIBRARY})
|
|
|
|
|
2006-11-16 13:38:24 +00:00
|
|
|
if(WIN32)
|
|
|
|
TARGET_LINK_LIBRARIES(qca crypt32)
|
|
|
|
endif(WIN32)
|
|
|
|
|
2006-11-17 19:35:45 +00:00
|
|
|
if(APPLE)
|
|
|
|
set(CARBON_LIBRARY_SECURITY "-framework Security")
|
|
|
|
TARGET_LINK_LIBRARIES(qca ${CARBON_LIBRARY} ${CARBON_LIBRARY_SECURITY})
|
|
|
|
endif(APPLE)
|
|
|
|
|
2007-01-09 14:42:11 +00:00
|
|
|
set_target_properties(qca PROPERTIES VERSION 2.0.0 SOVERSION 2 )
|
|
|
|
|
2007-01-09 16:14:22 +00:00
|
|
|
INSTALL(TARGETS qca DESTINATION ${LIB_INSTALL_DIR})
|
2006-10-02 09:59:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|