-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (28 loc) · 762 Bytes
/
CMakeLists.txt
File metadata and controls
40 lines (28 loc) · 762 Bytes
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
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(ImgdiffStandalone
LANGUAGES CXX
)
# --- Import tools ----
include(../cmake/tools.cmake)
# ---- Dependencies ----
include(../cmake/CPM.cmake)
CPMAddPackage(
NAME cxxopts
GITHUB_REPOSITORY jarro2783/cxxopts
VERSION 2.2.0
OPTIONS
"CXXOPTS_BUILD_EXAMPLES Off"
"CXXOPTS_BUILD_TESTS Off"
)
CPMAddPackage(
NAME Imgdiff
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..
)
# ---- Create standalone executable ----
file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
add_executable(ImgdiffStandalone ${sources})
set_target_properties(ImgdiffStandalone PROPERTIES
CXX_STANDARD 17
OUTPUT_NAME "Imgdiff"
)
target_link_libraries(ImgdiffStandalone Imgdiff cxxopts)