Skip to content

Commit 5b577ce

Browse files
committed
Added CPack information, trying to build deb files for Debian.
1 parent 34f83ad commit 5b577ce

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CMakeLists.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.0)
2-
project(qsqlcipher)
2+
project(libqt5sql5-sqlcipher)
33

44
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/cmake/")
55

@@ -111,7 +111,23 @@ if (NOT ("${QSQLCIPHER_COPYTO_DIR}" STREQUAL ""))
111111
add_custom_command(TARGET qsqlcipher POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:qsqlcipher> ${QSQLCIPHER_COPYTO_DIR}/$<TARGET_FILE_NAME:qsqlcipher>)
112112
endif()
113113

114+
if (NOT WIN32)
115+
INSTALL(TARGETS qsqlcipher DESTINATION lib/qt5/plugins/sqldrivers)
116+
else()
117+
INSTALL(TARGETS qsqlcipher DESTINATION sqldrivers)
118+
endif()
119+
114120
#include(CTest)
115121
if(QSQLCIPHER_BUILD_TESTS)
116122
add_subdirectory(${TEST_DIR})
117123
endif()
124+
125+
# Packaging
126+
SET(CPACK_PACKAGE_VERSION "0.1.0")
127+
SET(CPACK_PACKAGE_CONTACT "[email protected]")
128+
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
129+
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5sql5, libsqlcipher0, qtbase5-dev, qtbase5-private-dev")
130+
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Qt5 wrapper for using SqlCipher as a QSqlDriver.")
131+
SET(CPACK_DEBIAN_PACKAGE_SECTION "libs")
132+
133+
INCLUDE(CPack)

0 commit comments

Comments
 (0)