-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (29 loc) · 1.5 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
# CMake build file
# based on https://github.com/Pesc0/imgui-cmake and https://gist.github.com/rokups/f771217b2d530d170db5cb1e08e9a8f4
cmake_minimum_required(VERSION 3.2)
project(ImageInside LANGUAGES C CXX)
option(IMGUI_IMPL_DX12 "Build the DirectX 12 implementation (only if supported)" ${WIN32})
set(IMGUI_DIR "imgui")
add_library(IMGUI STATIC)
if (IMGUI_IMPL_DX12)
target_sources(IMGUI PRIVATE
${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_tables.cpp
${IMGUI_DIR}/imgui_widgets.cpp
${IMGUI_DIR}/imgui.cpp
${IMGUI_DIR}/backends/imgui_impl_win32.h
${IMGUI_DIR}/backends/imgui_impl_win32.cpp
${IMGUI_DIR}/backends/imgui_impl_dx12.h
${IMGUI_DIR}/backends/imgui_impl_dx12.cpp
)
target_link_libraries(IMGUI INTERFACE d3d12 dxgi)
endif()
target_include_directories( IMGUI
PUBLIC ${IMGUI_DIR}
)
add_executable(ImageInside ImageInside.cpp Correlation.cpp)
target_compile_features(ImageInside PUBLIC cxx_std_17)
target_sources(ImageInside PRIVATE ImageInside.cpp Settings.cpp Settings.h Correlation.cpp Correlation.h CandidateFinder.cpp CandidateFinder.h CandidateSettings.h
Candidate.h LoadTexture.cpp LoadTexture.h ImFileDialog/ImFileDialog.cpp ImFileDialog/ImFileDialog.h stb_image/stb_image.h test.png)
target_include_directories(ImageInside PUBLIC .)
target_link_libraries (ImageInside PUBLIC IMGUI)