Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TestImportingModulesFromCMake

A test to see efforts to import C++ modules created with CMake.

How I use this

Using Visual Studio I can open the CMake project and build it.

It creates a static lib (.lib) file which I will link with. But it also creates an .ifc file: image

Now a normal C++ .vcxproj will use additional includes such that it includes the header file. However with modules we'll specify additional Binary Module Interface directory and additional module dependency: image

Still I need to specify the additional link directories and link dependencies to link with the .lib file.

But when all is said and done it builds and compiles.

Additional Notes

I did get a warning when I first got this working: image

The gist of that is a fresh new .vcxproj has some settings and building a static lib with CMake has some settings. And they don't perfectly match. It still worked though.

But it was easy enough to get them to match. the new .vcxproj has a check turned on: image

And a floating point option set: image

I made it so the CMake target built with these same values and that made the warnings go away.

Hope that helps! :)

About

A test to see efforts to import C++ modules created with CMake.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages