-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
63 lines (59 loc) · 1.41 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
54
55
56
57
58
59
60
61
62
63
# CMAKELISTS.TXT|CREATED 23-JUN-2022|LAST MODIFIED 23-JUN-2022
cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 11)
set(
GLOBAL_SOURCES
./Source/DllMain.cpp ./Source/FmGui.cpp
)
set(
IMGUI_SOURCES
./Lib/imgui/imgui/imgui.cpp
./Lib/imgui/imgui/imgui_demo.cpp
./Lib/imgui/imgui/imgui_draw.cpp
./Lib/imgui/imgui/imgui_impl_dx11.cpp
./Lib/imgui/imgui/imgui_impl_win32.cpp
./Lib/imgui/imgui/imgui_tables.cpp
./Lib/imgui/imgui/imgui_widgets.cpp
)
set(
IMPLOT_SOURCES
./Lib/implot/implot.cpp
./Lib/implot/implot_demo.cpp
./Lib/implot/implot_items.cpp
)
project(FmGui)
# Global configuration.
link_directories(./Lib/MinHook/lib)
link_libraries(libMinHook.x64.lib)
# Both libraries need to be built with unicode support. As this is typically the
# default.
add_definitions(-D_UNICODE -DUNICODE)
# FmGui with excluded ImPlot.
add_library(FmGui STATIC
${GLOBAL_SOURCES}
${IMGUI_SOURCES}
)
target_include_directories(
FmGui
PRIVATE
./Include
./Lib/imgui/imgui
./Lib/MinHook/include
)
target_link_options(FmGui PRIVATE "/SUBSYSTEM:WINDOWS")
# FmGui.ImPlot with ImPlot included.
add_library(FmGui.ImPlot STATIC
${GLOBAL_SOURCES}
${IMGUI_SOURCES}
${IMPLOT_SOURCES}
)
target_include_directories(
FmGui.ImPlot
PRIVATE
./Include
./Lib/imgui/imgui
./Lib/implot
./Lib/MinHook/include
)
target_compile_definitions(FmGui.ImPlot PRIVATE FMGUI_ENABLE_IMPLOT)
target_link_options(FmGui.ImPlot PRIVATE "/SUBSYSTEM:WINDOWS")