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 --- dxcommon/CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'dxcommon/CMakeLists.txt') 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 @@ -cmake_minimum_required(VERSION 3.20) +cmake_minimum_required(VERSION 3.25) -add_library(dxcommon - src/dxcommon.cc) +project(dxcommon) + +add_library(dxcommon) + +target_sources(dxcommon PUBLIC + dxcommon.h) + +target_sources(dxcommon PUBLIC + FILE_SET cxx_modules TYPE CXX_MODULES FILES + dxcommon.ixx) target_include_directories(dxcommon PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR}/include) + .) target_link_libraries(dxcommon PUBLIC DirectX-Headers -- cgit v1.2.3