-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
58 lines (48 loc) · 1.46 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
project(KVirusTotal)
cmake_minimum_required(VERSION 2.6)
#if you don't want the full compiler output, remove the following line
# SET(CMAKE_VERBOSE_MAKEFILE ON)
find_package(KDE4 REQUIRED)
find_package(QCA2 REQUIRED)
set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Release)
include_directories(
${CMAKE_SOURCE_DIR}/core/
# ${CMAKE_SOURCE_DIR}/common/
# ${CMAKE_BINARY_DIR}/common/
${KDE4_INCLUDES}
${QCA2_INCLUDE_DIR}
${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(core)
add_subdirectory(resources)
add_subdirectory(translations)
set(kvirustotal_SRCS
settingsdialog.cpp
welcomepage.cpp
welcomewizard.cpp
reportrowviewhandler.cpp
taskviewhandler.cpp
taskrowviewhandler.cpp
reportviewhandler.cpp
reportviewhandler.cpp
mainwindow.cpp
main.cpp)
kde4_add_kcfg_files(kvirustotal_SRCS settings.kcfgc)
kde4_add_ui_files(kvirustotal_SRCS mainwindow.ui)
qt4_automoc(${kvirustotal_SRCS})
kde4_add_executable(kvirustotal ${kvirustotal_SRCS})
set( kvirustotal_LIBS
qjson
qca
kvt_core
kvt_base
kvt_api
kvt_web
${KDE4_KDEUI_LIBS}
${KDE4_LIBS}
${KDE4_KFILE_LIBRARY} )
target_link_libraries(kvirustotal ${kvirustotal_LIBS})
install( TARGETS kvirustotal ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES kvirustotal.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kvirustotal_servicemenu.desktop DESTINATION ${SHARE_INSTALL_PREFIX}/kde4/services/ServiceMenus )
#install(FILES settings.kcfg DESTINATION ${KCFG_INSTALL_DIR})