diff options
Diffstat (limited to 'dxg/CMakeLists.txt')
| -rw-r--r-- | dxg/CMakeLists.txt | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/dxg/CMakeLists.txt b/dxg/CMakeLists.txt index 6fa5401..b7607c0 100644 --- a/dxg/CMakeLists.txt +++ b/dxg/CMakeLists.txt | |||
| @@ -1,20 +1,23 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.25) | 1 | cmake_minimum_required(VERSION 3.20) |
| 2 | 2 | ||
| 3 | project(dxg) | 3 | project(dxg) |
| 4 | 4 | ||
| 5 | add_library(dxg) | 5 | add_library(dxg |
| 6 | include/dxg/dxcommon.h | ||
| 7 | src/dxg.c) | ||
| 6 | 8 | ||
| 7 | target_sources(dxg PUBLIC | 9 | # target_sources(dxg PUBLIC |
| 8 | dxcommon.h) | 10 | # FILE_SET cxx_modules TYPE CXX_MODULES FILES |
| 9 | 11 | # asset.ixx | |
| 10 | target_sources(dxg PUBLIC | 12 | # dxcommon.ixx |
| 11 | FILE_SET cxx_modules TYPE CXX_MODULES FILES | 13 | # dxg.ixx |
| 12 | dxcommon.ixx) | 14 | # imm.ixx) |
| 13 | 15 | ||
| 14 | target_include_directories(dxg PUBLIC | 16 | target_include_directories(dxg PUBLIC |
| 15 | .) | 17 | include) |
| 16 | 18 | ||
| 17 | target_link_libraries(dxg PUBLIC | 19 | target_link_libraries(dxg PUBLIC |
| 18 | DirectX-Headers | 20 | DirectX-Headers |
| 19 | D3D12.lib | 21 | D3D12.lib |
| 20 | DXGI.lib) | 22 | DXGI.lib |
| 23 | DXGUID.lib) # For IID_Xyz symbols | ||
