Skip to content

Commit

Permalink
Update CI with qt install
Browse files Browse the repository at this point in the history
  • Loading branch information
emttiew committed Mar 11, 2024
1 parent 0421d4c commit 5bac262
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cmake_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ jobs:
- name: Install Boost library
run: sudo apt-get update && sudo apt-get install libboost-all-dev -y

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.6.0'
host: 'linux'
dir: ${{env.BUILD_PATH}}
aqtversion: '==3.1.*'
target: 'desktop'
arch: 'gcc_64'

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
Expand Down
10 changes: 7 additions & 3 deletions source/Backend/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
project(PasswordManager)

add_library(sqlite3 STATIC ${LIB_DIR}/sqlite3.c)

find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
find_package(Boost REQUIRED)

add_executable(passwordManager
main.cpp
PasswordManager.cpp
Common/Logger.cpp)

target_include_directories(sqlite3 PUBLIC ${LIB_DIR})
target_link_libraries(passwordManager PRIVATE sqlite3 ${OPENSSL_LIBRARIES})
target_link_libraries(passwordManager PRIVATE sqlite3 ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES})

add_subdirectory(DataBase)

target_include_directories(passwordManager PRIVATE ${HEADERS_DIR})
target_include_directories(passwordManager PRIVATE
${HEADERS_DIR}
${Boost_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR})
2 changes: 1 addition & 1 deletion source/Frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)

project(QTFrontend VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED COMPONENTS Widgets)
Expand Down

0 comments on commit 5bac262

Please sign in to comment.