Hi all.
What would be the correct approach for:
Say I have a ./src/utils/utils.ixx, and, in that file, I want to include:
./extern/include/generator.hpp- and two windows headers, namely:
$ENV{WindowsSdkDir}/Include/$ENV{WindowsSDKVersion}/um/windows.hand$ENV{WindowsSdkDir}/Include/$ENV{WindowsSDKVersion}/ucrt/conio.h
I would then link my other modules with the utils module, so that I could use the functionality from it.
I have tried everything and no matter what I do, I get errors saying that the um/windows.h and ucrt/conio.h should be in one of the base dirs, although I literaly hard-coded the expanded version of $ENV{WindowsSdkDir}/Include/$ENV{WindowsSDKVersion}/; still, it only considers relative paths and, therefore, will look into ./src/utils/
I have tried using two targets, one for the headers [using HEADERS as the type and adding $ENV{WindowsSdkDir}/Include/$ENV{WindowsSDKVersion}/ for the base dir] and one for the generator.hpp + utils.ixx and it will say that it can’t determine the linker language from the HEADERS setup, etc.
What would be the appropriate approach here?
I would basically #include the generator file and the windows headers in the utils.ixx file, do what I needed to do with them, and simply link utils with the other libs, so I could call functions from utils.
Thank you.