summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2019-10-21 14:51:00 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2019-10-21 14:51:00 +0200
commit6049257b300b93754b18b672aa4d1269b5abdba8 (patch)
tree754802226f114f9e28f56d0ac6b85a8df9a86698
parent371ebaf39b50423905b51737e04fec2028a16bd0 (diff)
CMake first attempt
-rw-r--r--.gitignore7
-rw-r--r--CMakeLists.txt79
2 files changed, 86 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index ded98b04..9f7a7950 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,10 @@ README.rtf
html/**
rtf/**
latex/**
+man/**
+CMakeCache.txt
+CMakeFiles/**
+cmake-build-debug/**
+cmake_install.cmake
+qtpass.cbp
+qtpass_autogen/**
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..c5f99d11
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,79 @@
+cmake_minimum_required(VERSION 3.15)
+project(qtpass)
+
+set(CMAKE_CXX_STANDARD 14)
+
+set(CMAKE_AUTOUIC ON)
+set(CMAKE_AUTORCC ON)
+
+add_compile_definitions(VERSION="1.3.2")
+
+include_directories(src)
+
+find_package(Qt5Core REQUIRED)
+find_package(Qt5Widgets REQUIRED)
+find_package(Qt5Network REQUIRED)
+find_package(Qt5GUI REQUIRED)
+find_package(Qt5LinguistTools REQUIRED)
+
+file(GLOB TS_FILES "${CMAKE_CURRENT_SOURCE_DIR}/localization/*.ts")
+set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION localization)
+qt5_add_translation(QM_FILES ${TS_FILES})
+
+add_library(qtpasslib
+ src/configdialog.cpp
+ src/configdialog.h
+ src/debughelper.h
+ src/deselectabletreeview.h
+ src/enums.h
+ src/executor.cpp
+ src/executor.h
+ src/filecontent.cpp
+ src/filecontent.h
+ src/imitatepass.cpp
+ src/imitatepass.h
+ src/keygendialog.cpp
+ src/keygendialog.h
+ src/mainwindow.cpp
+ src/mainwindow.h
+ src/pass.cpp
+ src/pass.h
+ src/passwordconfiguration.h
+ src/passworddialog.cpp
+ src/passworddialog.h
+ src/qprogressindicator.cpp
+ src/qprogressindicator.h
+ src/qpushbuttonasqrcode.cpp
+ src/qpushbuttonasqrcode.h
+ src/qpushbuttonwithclipboard.cpp
+ src/qpushbuttonwithclipboard.h
+ src/qtpass.cpp
+ src/qtpass.h
+ src/qtpasssettings.cpp
+ src/qtpasssettings.h
+ src/realpass.cpp
+ src/realpass.h
+ src/settingsconstants.cpp
+ src/settingsconstants.h
+ src/simpletransaction.cpp
+ src/simpletransaction.h
+ src/singleapplication.cpp
+ src/singleapplication.h
+ src/storemodel.cpp
+ src/storemodel.h
+ src/trayicon.cpp
+ src/trayicon.h
+ src/userinfo.h
+ src/usersdialog.cpp
+ src/usersdialog.h
+ src/util.cpp
+ src/util.h
+ resources.qrc
+ ${QM_FILES})
+
+target_link_libraries(qtpasslib Qt5::Core Qt5::Widgets Qt5::Network)
+
+add_executable(qtpass
+ main/main.cpp)
+
+target_link_libraries(qtpass qtpasslib) \ No newline at end of file