From 556cf073d61875368fe8511b75f5cb7db04ccb52 Mon Sep 17 00:00:00 2001 From: Marc Sunet Date: Wed, 19 Nov 2025 11:24:21 -0800 Subject: Use C++ modules --- hello/CMakeLists.txt | 9 ++++++--- hello/main.cc | 9 ++++----- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'hello') diff --git a/hello/CMakeLists.txt b/hello/CMakeLists.txt index 90a0d78..ac9f285 100644 --- a/hello/CMakeLists.txt +++ b/hello/CMakeLists.txt @@ -1,7 +1,10 @@ -cmake_minimum_required(VERSION 3.20) +cmake_minimum_required(VERSION 3.25) -add_executable(hello main.cc) +project(hello) -target_link_libraries(hello +add_executable(hello + main.cc) + +target_link_libraries(hello PRIVATE dxcommon dxwindow) diff --git a/hello/main.cc b/hello/main.cc index 8e41d4b..47a2aba 100644 --- a/hello/main.cc +++ b/hello/main.cc @@ -1,14 +1,13 @@ #include -#include - -#include -#include -#include #include #include +import dxcommon; +import dxwindow; + using namespace dx; +using Microsoft::WRL::ComPtr; struct D3DSettings { -- cgit v1.2.3