CMakeLists.txt 1.07 KB
Newer Older
1 2 3 4 5 6 7 8

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
)

set(AKABEI_CORE_SRCS
akabeibackend.cpp
9
akabeiconfig.cpp
10
akabeidatabase.cpp
11
akabeierror.cpp
12
akabeigroup.cpp
13
akabeihelpers_p.cpp
14 15 16
akabeioperation.cpp
akabeioperationrunner.cpp
akabeipackage.cpp
17
akabeirunnerthread_p.cpp
18
akabeivalidatorthread_p.cpp
19 20 21 22 23 24 25 26
)

set(AKABEI_OPERATION_SRCS
operations/akabeiplaininstalloperation.cpp
)

qt4_automoc(${AKABEI_CORE_SRCS})
qt4_automoc(${AKABEI_OPERATION_SRCS})
27
# There are some files which are not detected by automoc, add them
28 29 30 31
qt4_wrap_cpp(AKABEI_MISSING_MOCS
akabeibackend_p.h
akabeivalidatorthread_p.h
)
32

33
add_library(akabeicore SHARED ${AKABEI_CORE_SRCS} ${AKABEI_OPERATION_SRCS} ${AKABEI_MISSING_MOCS})
34 35 36 37 38 39 40

set_target_properties(akabeicore PROPERTIES VERSION ${MAJOR_AKABEI_VERSION}.${MINOR_AKABEI_VERSION}.${PATCH_AKABEI_VERSION}
                                            SOVERSION ${MAJOR_AKABEI_VERSION}
                      )

target_link_libraries(akabeicore
    ${QT_QTCORE_LIBRARY}
41
    ${SQLITE_LIBRARIES}
Dario Freddi's avatar
Dario Freddi committed
42
    ${LIBARCHIVE_LIBRARY}
43
)
44 45

add_subdirectory(benchmarks)