diff options
| author | Marc Sunet <marc.sunet@amd.com> | 2025-11-19 11:24:21 -0800 |
|---|---|---|
| committer | Marc Sunet <marc.sunet@amd.com> | 2025-11-19 11:24:21 -0800 |
| commit | 556cf073d61875368fe8511b75f5cb7db04ccb52 (patch) | |
| tree | 356c3cfdfa926b7e3b11767dc76ab981610a463b /dxcommon/CMakeLists.txt | |
| parent | 5516490fd5bea08d253dcaed59c430c2dada5c2d (diff) | |
Use C++ modules
Diffstat (limited to 'dxcommon/CMakeLists.txt')
| -rw-r--r-- | dxcommon/CMakeLists.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/dxcommon/CMakeLists.txt b/dxcommon/CMakeLists.txt index 08fa178..dfb52bf 100644 --- a/dxcommon/CMakeLists.txt +++ b/dxcommon/CMakeLists.txt | |||
| @@ -1,10 +1,18 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.20) | 1 | cmake_minimum_required(VERSION 3.25) |
| 2 | 2 | ||
| 3 | add_library(dxcommon | 3 | project(dxcommon) |
| 4 | src/dxcommon.cc) | 4 | |
| 5 | add_library(dxcommon) | ||
| 6 | |||
| 7 | target_sources(dxcommon PUBLIC | ||
| 8 | dxcommon.h) | ||
| 9 | |||
| 10 | target_sources(dxcommon PUBLIC | ||
| 11 | FILE_SET cxx_modules TYPE CXX_MODULES FILES | ||
| 12 | dxcommon.ixx) | ||
| 5 | 13 | ||
| 6 | target_include_directories(dxcommon PUBLIC | 14 | target_include_directories(dxcommon PUBLIC |
| 7 | ${CMAKE_CURRENT_SOURCE_DIR}/include) | 15 | .) |
| 8 | 16 | ||
| 9 | target_link_libraries(dxcommon PUBLIC | 17 | target_link_libraries(dxcommon PUBLIC |
| 10 | DirectX-Headers | 18 | DirectX-Headers |
