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 b5a0d79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cmake_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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.
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})

0 comments on commit b5a0d79

Please sign in to comment.