Re: [CMake] Finding internal libraries

2015-07-14 Thread Ruslan Baratov via CMake
John LaGrone wrote > cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) > project(ex1) > find_package(foo REQUIRED) > add_executable(ex1.x ex1.c) > target_link_libraries(ex1.x foo) Just check that library exists already: if(NOT TARGET foo) find_package(foo REQUIRED) endif() -- View this mess

[CMake] Using ExternalProject_Add when CMakeFiles.txt is not in the root directory.

2015-07-14 Thread Klaim - Joël Lamotte
I am attempting to use ExternalDependencies_Add with the last Protobuf version (v3.0.0) which is in alpha3 (I'm using the master branch actually)[1]. If you don't already know: contrary to previous Protobuf version, v3.x provides cmake scripts (and also makes CMake's FindProtobuf module unusuable i

[CMake] Problems wth Linux tar.gz packages on cmake.org

2015-07-14 Thread Stephen Sorley
For some reason, all the tar.gz packages on cmake.org are being downloaded by google chrome as unzipped tar's (though the .tar.gz extension is preserved). I only see this behavior with chrome and cmake.org. If I use firefox, or if I download a tar.gz from somewhere else (the CMake github "release

Re: [CMake] Linking own header files to a source code

2015-07-14 Thread Micha Hergarden
Hello, You don't seem to tell cmake what executable you want and what sources it is made up of. Take a look at the 'add_executable' and 'add_library' commands. To create an executable from the sources, you may want to do something like: add_executable(test01 test01.cc) And for the library: add_lib

Re: [CMake] Patch for Sphinx warning message

2015-07-14 Thread Brad King
On 07/14/2015 12:57 AM, Andrew Maclean wrote: > This patch fixes this warning when building CMake from the master: > "WARNING: 'default' html theme has been renamed to 'classic'. Applied with slight tweaks: Utilities/Sphinx: Use 'classic' theme for Sphinx >= 1.3 http://cmake.org/gitweb?p=cmake.

Re: [CMake] Is there any way to set a build-type specific install path for multiconfig tools?

2015-07-14 Thread David Cole via CMake
Most of the variables that have a per-config variation on the name end with "_" ( see the page documenting CMake variables, and search it for "config" to get a sense of which variables these are... http://www.cmake.org/cmake/help/v3.3/manual/cmake-variables.7.html ) -- s, if you do prepare any

[CMake] Exporting/Publishing settings (e. g. include directories) from subdirectories

2015-07-14 Thread Rainer Poisel
Hi list, I have a project that consists of several subdirectories. For example: project-dir +- component1 | +- src | +- include-dir1 | +- include-dir2 +- component2 Let's say I want "component2" to add "include-dir1" and "include-dir2" from "component1" as include directories without "compone

Re: [CMake] Why does changing -G not change generators?

2015-07-14 Thread David Cole via CMake
It's just something you can't change without wiping the build tree entirely. It should probably actually produce an error or warning of some sort to avoid confusion such as this... D On Tue, Jul 14, 2015 at 11:01 AM, Paul Smith wrote: > We have a situation where people are sometimes wanting to

[CMake] Why does changing -G not change generators?

2015-07-14 Thread Paul Smith
We have a situation where people are sometimes wanting to switch between different generators: from Xcode to Unix Makefiles, or from Visual Studio 2010 to Visual Studio 2012, etc. If they have an already-configured workspace then run "cmake -G" with a different generator, it appears to be a no-op:

Re: [CMake] Can't find wxWidgets

2015-07-14 Thread Bob Bachman
I just wanted to close out this thread. The problem turned out to be DOS line endings in the wx-config file. The following line in the wxWidgets- 3.0.2/buildgtk/lib/wx/config directory fixed the problem. dos2unix inplace-gtk2-unicode-3.0 inplace-gtk2-unicode-3.0 Thanks for your help. Bob --

[CMake] Linking own header files to a source code

2015-07-14 Thread Peleg Bar-Sapir
Hello, I'm trying to configure my own library (called "libtrace") to a test file I made. My source library contains the following files: libtrace.h -- Header file for the libtrace library. libtrace.cc -- Source file for the libtrace library. test01.cc -- A test file that uses libtrace. CMakeLists

[CMake] Code Coverage of CMake Scripts

2015-07-14 Thread Jörg Kreuzberger
Hi! i just want to get coverage information from the configure step itself to find uncovered cmake makros and scripts. The --trace option seems to be the way to do it. is there any tool/script available to get these information in a good report? BEST solution would be something like lgov or govr