-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (29 loc) · 942 Bytes
/
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
cmake_minimum_required(VERSION 3.30)
project(PicConfusion)
# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(OpenCV_DIR "H:/Environment/opencv/sources/build")
# set(FREEIMAGE_ROOT "H:/Environment/FreeImage")
# set(FREEIMAGE_INCLUDE_DIR "${FREEIMAGE_ROOT}/Source")
# set(FREEIMAGE_LIBRARY_DIR "${FREEIMAGE_ROOT}/Dist/x64")
file(GLOB_RECURSE SOURCES "src/*.cpp")
add_executable(${PROJECT_NAME} ${SOURCES})
find_package(OpenCV REQUIRED)
find_package(OpenSSL REQUIRED)
# find_library(FREEIMAGE_LIBRARY
# NAMES FreeImage freeimage
# PATHS ${FREEIMAGE_LIBRARY_DIR}
# REQUIRED
# )
target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_SOURCE_DIR}/include"
${OpenCV_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
# ${FREEIMAGE_INCLUDE_DIR}
)
target_link_libraries(${PROJECT_NAME} PRIVATE
${OpenCV_LIBS}
# ${FREEIMAGE_LIBRARY}
${OPENSSL_LIBRARIES}
)