-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (51 loc) · 1.21 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
cmake_minimum_required(VERSION 2.8...3.13)
project(offset)
#SET(CMAKE_VERBOSE_MAKEFILE ON)
find_package(ZLIB REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Crc32c CONFIG REQUIRED)
find_package(OpenCV CONFIG REQUIRED)
find_package(RapidJSON CONFIG REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Quick QuickControls2 Gui)
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/osl
${CMAKE_SOURCE_DIR}/npl
${CMAKE_SOURCE_DIR}/fxc
${CMAKE_SOURCE_DIR}/cvl
)
if(MSVC)
add_definitions(
-D_CRT_SECURE_NO_WARNINGS
-D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
endif()
add_subdirectory(app)
add_executable(Test test.cpp)
set_property(TARGET Test PROPERTY CXX_STANDARD 23)
target_link_libraries(
Test
PRIVATE
rapidjson
ZLIB::ZLIB
OpenSSL::SSL
Crc32c::crc32c
opencv_ml
opencv_dnn
opencv_dpm
opencv_hdf
opencv_face
opencv_bgsegm
opencv_core
opencv_aruco
OpenSSL::Crypto
)
if (WIN32)
SET (CMAKE_CXX_FLAGS_RELEASE "/Zi /Od")
SET_TARGET_PROPERTIES(
Test PROPERTIES
LINK_FLAGS
"/DEBUG /OPT:REF /OPT:ICF")
endif (WIN32)
if (WIN32)
target_link_libraries(Test PRIVATE Ws2_32.lib VssApi.lib)
endif(WIN32)