[CMake] exporting targets from build tree

2016-07-27 Thread Michael Legleux
I have 2 projects (one built with cmake, one in the process of being converted to using it) Project A (built with cmake) builds lib_a that Project B requires. I'm thinking I'm doing something wrong around here: project(lib_a) ... add_library(lib_a STATIC ${SRC})

[CMake] excluded from build in Visual Studio project

2016-07-13 Thread Michael Legleux
I have a use case that I haven't had much luck googling. I have a project that needs to have files visible in the Visual Studio IDE but marked with the red "Excluded from build" symbol. The source files are not needed in any way for the visual studio project, but for example, they use functions