-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added build check for Qt on the server
added Qt5Sql path in CMake for the server
- Loading branch information
Showing
4 changed files
with
135 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.13) | ||
project(ServerModule) | ||
cmake_minimum_required(VERSION 3.13) | ||
project(ServerModule) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lcurl -pthread") | ||
set(Qt5Sql_DIR ~/Qt/5.15.1/gcc_64/lib/cmake/Qt5Sql/) | ||
|
||
find_package(Qt5Sql REQUIRED) | ||
|
||
add_compile_options(-l sqlite3) | ||
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY) | ||
add_executable(ServerModule main.cpp Server.cpp Server.h Session.cpp Session.h jsonUtility.cpp jsonUtility.h dbService.cpp dbService.h Client.cpp Client.h Message.cpp Message.h fileUtility.cpp fileUtility.h Symbol.cpp Symbol.h File.cpp File.h SymStyle.h SymStyle.cpp email.cpp email.h SharedEditor.cpp SharedEditor.h) | ||
|
||
target_link_libraries(ServerModule LINK_PUBLIC sqlite3 Qt5::Sql curl) | ||
target_link_libraries(ServerModule LINK_PUBLIC sqlite3 curl Qt5::Sql) |
Oops, something went wrong.