2006-10-02 09:59:51 +00:00
|
|
|
|
|
|
|
# base source files
|
|
|
|
|
|
|
|
SET( nonmoc_SOURCES
|
|
|
|
qca_tools.cpp
|
|
|
|
qca_plugin.cpp
|
|
|
|
qca_textfilter.cpp
|
|
|
|
qca_basic.cpp
|
|
|
|
qca_cert.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
SET( moc_SOURCES
|
|
|
|
qca_core.cpp
|
|
|
|
qca_publickey.cpp
|
|
|
|
qca_keystore.cpp
|
|
|
|
qca_securelayer.cpp
|
|
|
|
qca_securemessage.cpp
|
|
|
|
qca_default.cpp
|
|
|
|
support/qpipe.cpp
|
|
|
|
support/console.cpp
|
|
|
|
support/synchronizer.cpp
|
|
|
|
support/dirwatch/dirwatch.cpp
|
2006-11-13 20:33:03 +00:00
|
|
|
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-10-03 14:09:13 +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
|
|
|
|
|
|
|
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
|
|
|
|
-DBOTAN_VECTOR_OVER_ALLOCATE=4
|
|
|
|
)
|
|
|
|
|
|
|
|
SET( botan_SOURCES
|
|
|
|
${botan_BASE}/util.cpp
|
|
|
|
${botan_BASE}/exceptn.cpp
|
|
|
|
${botan_BASE}/mutex.cpp
|
|
|
|
${botan_BASE}/mux_qt/mux_qt.cpp
|
|
|
|
${botan_BASE}/secalloc.cpp
|
|
|
|
${botan_BASE}/defalloc.cpp
|
|
|
|
${botan_BASE}/allocate.cpp
|
|
|
|
${botan_BASE}/mp_core.cpp
|
|
|
|
${botan_BASE}/mp_comba.cpp
|
|
|
|
${botan_BASE}/mp_fkmul.cpp
|
|
|
|
${botan_BASE}/mp_mul.cpp
|
|
|
|
${botan_BASE}/mp_smul.cpp
|
|
|
|
${botan_BASE}/mp_shift.cpp
|
|
|
|
${botan_BASE}/mp_misc.cpp
|
|
|
|
${botan_BASE}/numthry.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
|
|
|
|
)
|
|
|
|
|
|
|
|
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")
|
|
|
|
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})
|
2006-10-03 14:09:13 +00:00
|
|
|
INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR} support support/dirwatch ${botan_BASE} )
|
2006-10-02 09:59:51 +00:00
|
|
|
TARGET_LINK_LIBRARIES(qca ${QT_QTCORE_LIBRARY})
|
|
|
|
|
|
|
|
INSTALL(TARGETS qca LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
|
|
|
# FIXME mac
|
|
|
|
# LIBS += -framework Carbon -framework Security
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|