[CMake] Calling install() from parent directory

2012-04-25 Thread Petr Kmoch
Hi all, I have a rather complex setup with multiple subdirectories under one top-level CMakeLists.txt file. I need to install some targets defined in subdirectories, but the destination of the install is not known at the time the subdirectory is processed (it potentially depends on stuff which hap

Re: [CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-25 Thread Bradley Lowekamp
Great! These look like the important lines to fix my coverage issue with Superbuilds: # HACK Unfortunately ctest_coverage ignores the BUILD argument, try to force it... file(READ ${slicer_build_dir}/CMakeFiles/TargetDirectories.txt slicer_build_coverage_dirs) file(APPEND "${CT

Re: [CMake] Zero coverage being reported on gcc/Linux builds.

2012-04-25 Thread Jean-Christophe Fillion-Robin
Hi Brad, Consider looking at https://github.com/Slicer/Slicer/blob/master/CMake/SlicerDashboardDriverScript.cmake#L246 Hth Jc On Tue, Apr 24, 2012 at 9:13 AM, Bradley Lowekamp wrote: > Hello, > > Are both of these project using SuperBuilds? > > I know with SimpleITK I was unable to get coverage

Re: [CMake] CPack : NSIS - registry key setting/over-riding

2012-04-25 Thread David Cole
On Wed, Apr 25, 2012 at 8:21 AM, Eric Noulard wrote: > 2012/4/25 Nicholas Yue : >> Hi, >> >>  As part of my NSIS packaged installer, I need to register an >> environment variable e.g. MYSOFTWARE_PATH >> >>  I see the variable CPACK_PACKAGE_INSTALL_REGISTRY_KEY but am unsure >> about the syntax >>

[CMake] How to add dependency on parent directories?

2012-04-25 Thread Vyacheslav Karamov
Hi All! My project's (named Compare) structure is similar to this: Root | SphinX | sphinxbase (autotools project) Sound | |-DoScoring (my Cmake-based project) |-Compare (my Cmake-based project) |-CMakeLists.txt |-src (source files f

Re: [CMake] CPack : NSIS - registry key setting/over-riding

2012-04-25 Thread Eric Noulard
2012/4/25 Nicholas Yue : > Hi, > >  As part of my NSIS packaged installer, I need to register an > environment variable e.g. MYSOFTWARE_PATH > >  I see the variable CPACK_PACKAGE_INSTALL_REGISTRY_KEY but am unsure > about the syntax > >  I tried the following but it didn't work > >  SET ( CPACK_PAC

[CMake] LLVM Dragonegg usage in CMakeLists.txt

2012-04-25 Thread Martin Apel
I am trying to use the LLVM dragonegg plugin for GCC in a project, which is built using CMake. However I have a hard time figuring out how to tell CMake, what it should do. Dragonegg is a plugin, which makes GCC use part of the LLVM infrastructure to optimize the compiled code. In my case, I am try

[CMake] VS10 empty property pages for single source file

2012-04-25 Thread Anton Sibilev
Hello! I use 2.8.8 version and got the problem, with absolute paths to files and bug in MSVS2010. Issues is already discribed in bugtracker. http://public.kitware.com/Bug/view.php?id=12570#c27757 http://connect.microsoft.com/VisualStudio/feedback/details/635294/using-absolute-path-in-clcompile-item

[CMake] CPack : NSIS - registry key setting/over-riding

2012-04-25 Thread Nicholas Yue
Hi, As part of my NSIS packaged installer, I need to register an environment variable e.g. MYSOFTWARE_PATH I see the variable CPACK_PACKAGE_INSTALL_REGISTRY_KEY but am unsure about the syntax I tried the following but it didn't work SET ( CPACK_PACKAGE_INSTALL_REGISTRY_KEY "HKEY