-
Notifications
You must be signed in to change notification settings - Fork 263
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (36 loc) · 1.54 KB
/
CMakeLists.txt
File metadata and controls
48 lines (36 loc) · 1.54 KB
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
cmake_minimum_required(VERSION 3.11)
set(project_name "MatchTool")
project(${project_name})
#for MFC
add_definitions(-D_AFXDLL)
set(CMAKE_MFC_FLAG 2)
add_definitions(-DUNICODE -D_UNICODE)
#for opencv4
add_definitions(-DOPENCV_4X)
set(CMAKE_CXX_STANDARD 17)
find_package(OpenCV CONFIG REQUIRED)
add_executable(${project_name} WIN32
#MatchTool/CvvImage.h
MatchTool/framework.h
MatchTool/MatchTool.h
MatchTool/MatchToolDlg.h
MatchTool/pch.h
MatchTool/resource.h
MatchTool/targetver.h
#MatchTool/arm_version.cpp
#CvvImage.cpp
MatchTool/MatchTool.cpp
MatchTool/MatchToolDlg.cpp
MatchTool/pch.cpp
MatchTool/MatchTool.rc
MatchTool/MatchTool.Lang
MatchTool/res/MatchTool.ico
MatchTool/res/MatchTool.rc2
)
# Copy MatchTool.Lang to the output directory
add_custom_command(TARGET ${project_name} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/MatchTool/MatchTool.Lang
$<TARGET_FILE_DIR:${project_name}>
)
target_link_libraries(${project_name} PRIVATE opencv_core opencv_imgproc opencv_highgui)