-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (41 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
cmake_minimum_required(VERSION 3.11)
project(DitheryDo)
# ------------ CMAKE CONFIGURATION -------------------
set(FETCHCONTENT_QUIET FALSE)
include(FetchContent)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE Debug)
set(BINARY ${PROJECT_NAME})
# ------------ ADD DEPENDENCIES -------------------
FetchContent_Declare(glm
GIT_REPOSITORY https://github.com/g-truc/glm
GIT_TAG 0.9.9.8
)
FetchContent_Declare(argparse
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
GIT_TAG v3.0
)
FetchContent_MakeAvailable(argparse glm)
# ------------ CONFIGURE APPLICATION -------------------
add_executable(${BINARY}
external/stb/stb_image.cpp
external/stb/stb_image_write.cpp
src/main.cpp
src/color/LabColorSpace.cpp
src/color/XyzColorSpace.cpp
src/select/ClosestEuclidian.cpp
src/select/ClosestLine.cpp
src/select/PartitionBlend.cpp
src/pipeline/XyzConversion.cpp
src/pipeline/LabConversion.cpp
src/pipeline/PipelineStep.cpp
src/Palette.cpp
)
target_include_directories(${BINARY}
PRIVATE external
PRIVATE src
)
target_link_libraries(${BINARY} argparse glm)