[CMake] [msvc] building windows drivers with cmake

2014-10-05 Thread Tim Blechmann
hi, i'm wondering, is it possible to generate msvc solutions for windows kernel mode drivers? afaict, the generated projects would have to use a specific platform toolset: WindowsKernelModeDriver8.1 but also some other specific entries, like: Driver KMDF maybe it be possible/easy/reasonable to

Re: [CMake] Dependency paths in CMake package config files

2014-10-05 Thread Stephen Kelly
Ruslan Baratov via CMake wrote: >> So my question is, in general, how can I make installabled static >> libraries with a package config file? Or is the trying to redistribute >> static libraries a bad idea in the first place? > It's not related to static/shared, this is about absolute path. If yo

Re: [CMake] Dependency paths in CMake package config files

2014-10-05 Thread Ruslan Baratov via CMake
On 02-Oct-14 20:56, Alexander Lamaison wrote: How do you manage the paths to the libraries that your static library package depends on in the XXXConfig.cmake that gets installed with package XXX? I'm exporting my static library package from both the build tree and from the installation location

Re: [CMake] generator-expressions + pch -> need new magic

2014-10-05 Thread Evgeniy Dushistov
I found workaround for that problem, I add to this loop: foreach(flag ${MY_DEFS}) list(APPEND gcc_flags "-D${flag}") endforeach() such code: foreach(flag ${PL_COMP_DEFS}) string(FIND ${flag} "$<" find_res) if (find_res EQUAL 0) list(APPEND gcc_flags "$<$:-D$>") else ()

Re: [CMake] Main program not getting rebuilt when library changes.

2014-10-05 Thread Bill Greene
>You need not include the header files in an add_library call. They'll be found by the compiler, provided you have included them in the cpp files. I want the cmake-generated VS solution to include a "Header Files" folder in the project containing all .h files. Perhaps there are other ways of accom