Commit 3b36b3d0 authored by Laurent Montel's avatar Laurent Montel 😁

Create a lib

parent cc7aaa31
......@@ -6,11 +6,23 @@ include_directories(
${CMAKE_SOURCE_DIR}/messagecomposer/
)
set(followupreminderlib_SRCS
followupreminderinfo.cpp
)
kde4_add_library( followupreminder ${LIBRARY_TYPE} ${followupreminderlib_SRCS} )
target_link_libraries( followupreminder ${KDE4_KDEUI_LIBS} )
set_target_properties( followupreminder PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install( TARGETS followupreminder ${INSTALL_TARGETS_DEFAULT_ARGS} )
set(followupreminderagent_SRCS
followupreminderagent.cpp
followupremindermanager.cpp
followupreminderinfodialog.cpp
followupreminderinfo.cpp
followupreminderjob.cpp
followupremindernoanswerdialog.cpp
followupreminderinfowidget.cpp
......@@ -29,6 +41,7 @@ target_link_libraries(akonadi_followupreminder_agent
${KDEPIMLIBS_AKONADI_LIBS}
${KDEPIMLIBS_AKONADI_KMIME_LIBS}
${KDEPIMLIBS_KMIME_LIBS}
followupreminder
)
if (Q_WS_MAC)
......
......@@ -6,10 +6,10 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/
# Convenience macro to add unit tests.
macro( followupreminder_agent _source )
set( _test ${_source} ../followupreminderinfo.cpp )
set( _test ${_source} )
get_filename_component( _name ${_source} NAME_WE )
kde4_add_unit_test( ${_name} TESTNAME followupreminder-${_name} ${_test} )
target_link_libraries( ${_name} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS})
target_link_libraries( ${_name} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS} followupreminder)
endmacro()
followupreminder_agent(followupreminderinfotest.cpp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment