summaryrefslogtreecommitdiff
blob: d3b31bcbcbe4cd4d1d6fe0e7169a50d79bd0cefe (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
--- sqlitebrowser-3.6.0/CMakeLists.txt
+++ sqlitebrowser-3.6.0/CMakeLists.txt
@@ -21,15 +21,9 @@
 	set(CMAKE_PREFIX_PATH "${QT5_PATH};${SQLITE3_PATH}")
 endif()
 
-set(ANTLR_DIR libs/antlr-2.7.7)
 set(QHEXEDIT_DIR libs/qhexedit)
-set(QCUSTOMPLOT_DIR libs/qcustomplot-source)
-set(QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)
 
-add_subdirectory(${ANTLR_DIR})
 add_subdirectory(${QHEXEDIT_DIR})
-add_subdirectory(${QCUSTOMPLOT_DIR})
-add_subdirectory(${QSCINTILLA_DIR})
 
 if(USE_QT5)
 	find_package(Qt5Widgets REQUIRED)
@@ -31,7 +31,7 @@
     set(CMAKE_AUTOMOC ON)
     set(CMAKE_INCLUDE_CURRENT_DIR ON)
 else()
-    find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork REQUIRED)
+    find_package(Qt4 COMPONENTS QtCore QtGui QtNetwork qscintilla2 REQUIRED)
     include("${QT_USE_FILE}")
     add_definitions(${QT_DEFINITIONS})
 endif()
@@ -207,10 +201,7 @@
 
 include_directories(
 		"${CMAKE_CURRENT_BINARY_DIR}"
-		${ANTLR_DIR}
 		${QHEXEDIT_DIR}
-		${QCUSTOMPLOT_DIR}
-		${QSCINTILLA_DIR}
 		${ADDITIONAL_INCLUDE_PATHS}
 		src)
 
@@ -227,13 +218,10 @@
     qt5_use_modules(${PROJECT_NAME} Gui Widgets Network Test PrintSupport)
     set(QT_LIBRARIES "")
 endif()
-add_dependencies(${PROJECT_NAME} antlr qhexedit qcustomplot qscintilla2)
+add_dependencies(${PROJECT_NAME} qhexedit)
 
 link_directories(
-		"${CMAKE_CURRENT_BINARY_DIR}/${ANTLR_DIR}"
-		"${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}"
-		"${CMAKE_CURRENT_BINARY_DIR}/${QCUSTOMPLOT_DIR}"
-		"${CMAKE_CURRENT_BINARY_DIR}/${QSCINTILLA_DIR}")
+		"${CMAKE_CURRENT_BINARY_DIR}/${QHEXEDIT_DIR}")
 
 target_link_libraries(${PROJECT_NAME}
 		antlr
--- sqlitebrowser-3.6.0/tests/CMakeLists.txt
+++ sqlitebrowser-3.6.0/tests/CMakeLists.txt
@@ -7,9 +7,6 @@
     set(CMAKE_BUILD_TYPE "Release")
 endif()
 
-set(ANTLR_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../libs/antlr-2.7.7")
-add_subdirectory("${ANTLR_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/antlr")
-
 if(USE_QT5)
     find_package(Qt5Widgets REQUIRED)
     set(CMAKE_AUTOMOC ON)
@@ -65,7 +62,7 @@
     QT4_WRAP_UI(SQLB_FORM_HDR ${SQLB_FORMS})
 endif()
 
-include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${ANTLR_DIR}" ../src)
+include_directories("${CMAKE_CURRENT_BINARY_DIR}" ../src)
 
 add_executable(${PROJECT_NAME} ${SQLB_MOC} ${SQLB_HDR} ${SQLB_SRC} ${SQLB_FORM_HDR})