diff options
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | CMakeLists.txt | 15 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | main/CMakeLists.txt | 14 | ||||
-rw-r--r-- | src/CMakeLists.txt | 80 |
5 files changed, 132 insertions, 1 deletions
@@ -38,3 +38,17 @@ README.rtf html/** rtf/** latex/** +man/** +CMakeCache.txt +CMakeFiles/** +cmake-build-debug/** +cmake_install.cmake +qtpass.cbp +qtpass_autogen/** +libqtpasslib.a +main/CMakeFiles/** +qtpasslib_autogen/** +src/CMakeFiles/** +main/qtpass_autogen/** +src/localization/** +src/qtpasslib_autogen/**
\ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..49ff5cd4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.15) +project(qtpass) +set(CMAKE_CXX_STANDARD 14) + +add_compile_definitions(VERSION="1.3.2") + +find_package(Qt5LinguistTools) +find_package(Qt5Core REQUIRED) +find_package(Qt5Widgets REQUIRED) +find_package(Qt5Network REQUIRED) +find_package(Qt5Gui REQUIRED) +find_package(Qt5Svg REQUIRED) + +add_subdirectory(src) +add_subdirectory(main)
\ No newline at end of file @@ -76,7 +76,15 @@ On Mac OS X this currently seems to only work best with `pinentry-mac` from home On most unix systems all you need is: ``` -qmake && make && make install +qmake +make +make install +``` + +Currently broken: +``` +cmake . +make ``` Testing diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 00000000..4b37bc87 --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,14 @@ +include_directories(../src) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +file(GLOB TS_FILES "../localization/*.ts") +set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION localization) +qt5_add_translation(QM_FILES ${TS_FILES}) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +add_executable(qtpass + main.cpp) + +target_link_libraries(qtpass qtpasslib Qt5::Widgets Qt5::Network Qt5::Svg) +add_compile_definitions(QAPPLICATION_CLASS=QApplication) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 00000000..75e930dc --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,80 @@ +#set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTOUIC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +add_compile_definitions(CORE_LIBRARY) + +file(GLOB TS_FILES "../localization/*.ts") +set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION localization) +qt5_add_translation(QM_FILES ${TS_FILES}) +add_custom_target(translations DEPENDS ${QM_FILES}) + +qt5_wrap_ui(ui_configdialog.h configdialog.ui) +qt5_wrap_ui(ui_keygendialog.h keygendialog.ui) +qt5_wrap_ui(ui_mainwindow.h mainwindow.ui) +qt5_wrap_ui(ui_passworddialog.h passworddialog.ui) +qt5_wrap_ui(ui_usersdialog.h usersdialog.ui) + +set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") +set(CMAKE_CXX_FLAGS "${Qt5Svg_EXECUTABLE_COMPILE_FLAGS}") +set(CMAKE_CXX_FLAGS "${Qt5Network_EXECUTABLE_COMPILE_FLAGS}") + +add_library(qtpasslib #SHARED + configdialog.cpp + configdialog.h + configdialog.ui + debughelper.h + deselectabletreeview.h + enums.h + executor.cpp + executor.h + filecontent.cpp + filecontent.h + imitatepass.cpp + imitatepass.h + keygendialog.cpp + keygendialog.h + keygendialog.ui + mainwindow.cpp + mainwindow.h + mainwindow.ui + pass.cpp + pass.h + passwordconfiguration.h + passworddialog.cpp + passworddialog.h + passworddialog.ui + qprogressindicator.cpp + qprogressindicator.h + qpushbuttonasqrcode.cpp + qpushbuttonasqrcode.h + qpushbuttonwithclipboard.cpp + qpushbuttonwithclipboard.h + qtpass.cpp + qtpass.h + qtpasssettings.cpp + qtpasssettings.h + realpass.cpp + realpass.h + settingsconstants.cpp + settingsconstants.h + simpletransaction.cpp + simpletransaction.h + singleapplication.cpp + singleapplication.h + storemodel.cpp + storemodel.h + trayicon.cpp + trayicon.h + userinfo.h + usersdialog.cpp + usersdialog.h + usersdialog.ui + util.cpp + util.h + ../resources.qrc + ${QM_FILES}) + +target_link_libraries(qtpasslib Qt5::Widgets Qt5::Network Qt5::Svg) +add_compile_definitions(QAPPLICATION_CLASS=QApplication) |