-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (31 loc) · 877 Bytes
/
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
cmake_minimum_required(VERSION 3.10)
project(demo)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
#set(CMAKE_CXX_FLAGS_DEBUG "/std:c++20 /O2 /MD")
#set(CMAKE_CXX_FLAGS_DEBUG "/std:c++20 /Od /Zi /DEBUG /MDd /fsanitize=address")
set(CMAKE_CXX_FLAGS_DEBUG "/std:c++20 /Od /Zi /DEBUG /MDd")
message("${CMAKE_CXX_FLAGS_DEBUG}")
add_library(dxtk STATIC
dxtk/button.cpp
dxtk/control.cpp
dxtk/column.cpp
dxtk/drawable.cpp
dxtk/dxobject.cpp
dxtk/image.cpp
dxtk/label.cpp
dxtk/line.cpp
dxtk/mathutils.cpp
dxtk/inputarea.cpp
dxtk/rectangle.cpp
dxtk/renderer.cpp
dxtk/row.cpp
dxtk/slider.cpp
dxtk/textfield.cpp
dxtk/timer.cpp
dxtk/window.cpp
)
set(CMAKE_EXE_LINKER_FLAGS "/SUBSYSTEM:WINDOWS /DEBUG")
add_executable(demo main.cpp)
target_include_directories(demo PRIVATE ./dxtk)
target_link_libraries(demo dxtk user32 dwmapi d2d1 dxguid dwrite shcore)