forked from ruben2020/codequery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (44 loc) · 2.07 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
cmake_minimum_required(VERSION 2.8)
project(CodeQuery)
IF(MSVC)
ADD_DEFINITIONS(/D _CRT_SECURE_NO_WARNINGS)
ELSE(MSVC)
SET( CMAKE_CXX_FLAGS "-O2 -Wno-unused-result" )
SET( CMAKE_CXX_FLAGS_DEBUG "-O2 -Wno-unused-result" )
SET( CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-unused-result" )
ENDIF(MSVC)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/helper/")
set( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR} )
INCLUDE_DIRECTORIES( "../makedb" )
set( OPTLISTLIB_SRCS makedb/optlist.cpp )
add_library( optlist_lib STATIC ${OPTLISTLIB_SRCS} )
add_subdirectory( "querylib" )
add_subdirectory( "makedb" )
add_subdirectory( "cli" )
add_subdirectory( "showgraph" )
add_subdirectory( "gui" )
if (UNIX)
if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64" )
set( CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64" )
else( CMAKE_SIZEOF_VOID_P EQUAL 8 )
set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "i386" )
set( CPACK_RPM_PACKAGE_ARCHITECTURE "i686" )
endif( CMAKE_SIZEOF_VOID_P EQUAL 8 )
set( CPACK_GENERATOR "DEB;RPM;TGZ")
set( CPACK_PACKAGE_NAME "codequery" )
set( CPACK_PACKAGE_VERSION "0.14" )
set( CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-Linux-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}" )
set( CPACK_DEBIAN_PACKAGE_DEPENDS "libqtgui4 (>= 4.7.0) , libqt4-xml (>= 4.7.0) , libsqlite3-0 (>= 3.7.0) , libqscintilla2-9 (>= 2.6.0) , cscope , exuberant-ctags")
set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Code understanding and searching tool")
set( CPACK_PACKAGE_DESCRIPTION "Code understanding and searching tool")
set( CPACK_DEBIAN_PACKAGE_SECTION "devel" )
set( CPACK_DEBIAN_PACKAGE_MAINTAINER "ruben2020 [email protected]")
set( CPACK_RPM_PACKAGE_LICENSE "GPLv3+")
set( CPACK_RPM_PACKAGE_GROUP "Development/Tools")
set( CPACK_PACKAGE_VENDOR "ruben2020")
set( CPACK_RPM_PACKAGE_REQUIRES "ruben2020 [email protected]")
set( CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://ruben2020.github.io/codequery/")
set( CPACK_RPM_PACKAGE_REQUIRES "qt >= 4.7,sqlite >= 3.7,qscintilla >= 2.6,cscope,ctags")
include(CPack)
endif(UNIX)