[CMake] Making the export function output relative paths

2015-05-06 Thread John van der Burg
Hi, I'm trying to get my head around CMake config files to use in combination with find_package. So currently I have a given library target setup. Then I call a configure_package_config_file to generate some TargetConfig.cmake. After that I call an export on the target. The files are generated f

[CMake] Per target, per configuration compile flags issue

2015-04-18 Thread John van der Burg
I'm having some problem with custom configurations in combination with multiple cmake projects. Basically what I have is some helper function/macro which sets the available configurations, sets the CMAKE_CXX_FLAGS_ etc. I do this with: set(CMAKE_CONFIGURATION_TYPES Debug Release) set(CMAKE_CONFIG