-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (44 loc) · 2.37 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cmake_minimum_required(VERSION 3.16)
project(SerikBelediyesiWebSayfasi LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 20)
ADD_DEFINITIONS(-DQT_NO_KEYWORDS)
find_package(Qt6 6.2 COMPONENTS Core Gui Xml Widgets REQUIRED)
set(bsoncxx_DIR C:/Mongo/mongo-msvc2022x64-noBoost/lib/cmake/bsoncxx-3.7.0)
set(mongocxx_DIR C:/Mongo/mongo-msvc2022x64-noBoost/lib/cmake/mongocxx-3.7.0)
include_directories("${CMAKE_SOURCE_DIR}")
include_directories("C:/SerikBLDCoreRelease/MSVC2022x64noBoost/include/bilgiEdinme")
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
add_executable(SerikBelediyesiWebSayfasi
${HEADERS}
${SOURCES}
SerikBelediyesiWebSayfasi/srcV2/karavan/UpdateDialog.h SerikBelediyesiWebSayfasi/srcV2/karavan/UpdateDialog.cpp
)
target_include_directories(SerikBelediyesiWebSayfasi PUBLIC "C:/Mongo/mongo-msvc2022x64-noBoost/include")
target_link_directories(SerikBelediyesiWebSayfasi PUBLIC "C:/Mongo/mongo-msvc2022x64-noBoost/lib")
target_include_directories(SerikBelediyesiWebSayfasi PUBLIC "C:/SerikBLDCoreRelease/MSVC2022x64noBoost/include")
target_link_directories(SerikBelediyesiWebSayfasi PUBLIC "C:/SerikBLDCoreRelease/MSVC2022x64noBoost/lib")
target_link_libraries(SerikBelediyesiWebSayfasi
PRIVATE Qt6::Core Qt6::Gui Qt::Xml Qt::Widgets SerikBLDCore)
find_package(mongocxx REQUIRED)
find_package(bsoncxx REQUIRED)
include_directories(${LIBMONGOCXX_INCLUDE_DIR})
include_directories(${LIBBSONCXX_INCLUDE_DIR})
target_link_libraries(SerikBelediyesiWebSayfasi PRIVATE mongo::bsoncxx_shared)
target_link_libraries(SerikBelediyesiWebSayfasi PRIVATE mongo::mongocxx_shared)
set(Wt_DIR C:/Wt_4.10.1_msvs2022-x64/lib/cmake/wt)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "C:/Wt_4.10.1_msvs2022-x64/lib/cmake/wt")
FIND_PACKAGE( Wt REQUIRED )
#include_directories(${Wt_INCLUDE_DIR})
target_include_directories(SerikBelediyesiWebSayfasi PUBLIC "C:/Wt_4.10.1_msvs2022-x64/include")
target_link_directories(SerikBelediyesiWebSayfasi PUBLIC "C:/Wt_4.10.1_msvs2022-x64/lib")
target_link_libraries(SerikBelediyesiWebSayfasi PRIVATE Wt WtHttp)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/ignore:4251")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../Comman)
if(WIN32)
add_definitions("/wd4251")
endif(WIN32)