diff options
| author | Marc Sunet <marc.sunet@amd.com> | 2025-11-19 19:42:04 -0800 |
|---|---|---|
| committer | Marc Sunet <marc.sunet@amd.com> | 2025-11-19 19:42:04 -0800 |
| commit | b5697421bbc73ed17ef3a8bc003571d1b6351b5c (patch) | |
| tree | 655dd8d239e582c6d37609cea95e76a4e6ce24f2 | |
| parent | 0cca9d39108e0305d1e278feafa1ca737f436bc9 (diff) | |
Rename dxcommon -> dxg
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | dxcommon/CMakeLists.txt | 20 | ||||
| -rw-r--r-- | dxg/CMakeLists.txt | 20 | ||||
| -rw-r--r-- | dxg/dxcommon.h (renamed from dxcommon/dxcommon.h) | 0 | ||||
| -rw-r--r-- | dxg/dxcommon.ixx (renamed from dxcommon/dxcommon.ixx) | 0 | ||||
| -rw-r--r-- | hello/CMakeLists.txt | 2 |
6 files changed, 22 insertions, 22 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 631e1e3..ca8b0ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -17,7 +17,7 @@ add_subdirectory(contrib/DirectX-Headers) | |||
| 17 | add_subdirectory(contrib/glfw) | 17 | add_subdirectory(contrib/glfw) |
| 18 | 18 | ||
| 19 | # Common libraries. | 19 | # Common libraries. |
| 20 | add_subdirectory(dxcommon) | 20 | add_subdirectory(dxg) |
| 21 | add_subdirectory(dxwindow) | 21 | add_subdirectory(dxwindow) |
| 22 | 22 | ||
| 23 | # Applications. | 23 | # Applications. |
diff --git a/dxcommon/CMakeLists.txt b/dxcommon/CMakeLists.txt deleted file mode 100644 index dfb52bf..0000000 --- a/dxcommon/CMakeLists.txt +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.25) | ||
| 2 | |||
| 3 | project(dxcommon) | ||
| 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) | ||
| 13 | |||
| 14 | target_include_directories(dxcommon PUBLIC | ||
| 15 | .) | ||
| 16 | |||
| 17 | target_link_libraries(dxcommon PUBLIC | ||
| 18 | DirectX-Headers | ||
| 19 | D3D12.lib | ||
| 20 | DXGI.lib) | ||
diff --git a/dxg/CMakeLists.txt b/dxg/CMakeLists.txt new file mode 100644 index 0000000..6fa5401 --- /dev/null +++ b/dxg/CMakeLists.txt | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.25) | ||
| 2 | |||
| 3 | project(dxg) | ||
| 4 | |||
| 5 | add_library(dxg) | ||
| 6 | |||
| 7 | target_sources(dxg PUBLIC | ||
| 8 | dxcommon.h) | ||
| 9 | |||
| 10 | target_sources(dxg PUBLIC | ||
| 11 | FILE_SET cxx_modules TYPE CXX_MODULES FILES | ||
| 12 | dxcommon.ixx) | ||
| 13 | |||
| 14 | target_include_directories(dxg PUBLIC | ||
| 15 | .) | ||
| 16 | |||
| 17 | target_link_libraries(dxg PUBLIC | ||
| 18 | DirectX-Headers | ||
| 19 | D3D12.lib | ||
| 20 | DXGI.lib) | ||
diff --git a/dxcommon/dxcommon.h b/dxg/dxcommon.h index addb8c3..addb8c3 100644 --- a/dxcommon/dxcommon.h +++ b/dxg/dxcommon.h | |||
diff --git a/dxcommon/dxcommon.ixx b/dxg/dxcommon.ixx index b06ae95..b06ae95 100644 --- a/dxcommon/dxcommon.ixx +++ b/dxg/dxcommon.ixx | |||
diff --git a/hello/CMakeLists.txt b/hello/CMakeLists.txt index ac9f285..2804b24 100644 --- a/hello/CMakeLists.txt +++ b/hello/CMakeLists.txt | |||
| @@ -6,5 +6,5 @@ add_executable(hello | |||
| 6 | main.cc) | 6 | main.cc) |
| 7 | 7 | ||
| 8 | target_link_libraries(hello PRIVATE | 8 | target_link_libraries(hello PRIVATE |
| 9 | dxcommon | 9 | dxg |
| 10 | dxwindow) | 10 | dxwindow) |
