Re: [CMake] Problems running npm-based tests on Windows

2016-08-25 Thread Andrey Fedorov
As demonstrated here https://github.com/QIICR/dcmqi/pull/79, the problem is resolved when .cmd versions of the commands are used. On Wed, Aug 24, 2016 at 1:10 PM, Andrey Fedorov wrote: > Hi, > > we are running ctest's on appveyor using npm-installed packages. > Specifically, we

[CMake] Problems running npm-based tests on Windows

2016-08-24 Thread Andrey Fedorov
Hi, we are running ctest's on appveyor using npm-installed packages. Specifically, we run jsonlint and ajv on json files to validate the content. Packages are installed in this line: https://github.com/QIICR/dcmqi/blob/master/appveyor.yml#L12-L13 of the appveyor configuration. The installed pack

[CMake] Customizing output of ctest command

2016-01-20 Thread Andrey Pokrovskiy
Hi, One of my tests generates a report table (file in text format). I would like to see its content after each ctest (or make test) invocation. Is there any way to achieve that? I noticed that tests targets have ATTACHED_FILES property, though it looks like it has no effect on ctest run when dashb

[CMake] Specifying dependencies in a project containing built-from-source artifact generators

2015-12-14 Thread Andrey Mishchenko
lar, before `copy_generating_resource` is run. Am I missing something? Andrey Mishchenko -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more info

Re: [CMake] Modern superbuild template including support for

2015-08-20 Thread Andrey Pokrovskiy
ilding the clsparse project (the dependencies change very seldom). > However, visual studio's intellisense does start indexing boost and gmock > because they are included in clsparse like any other header file or library, > so they become 'browseable' through the IDE.

Re: [CMake] Modern superbuild template including support for

2015-08-20 Thread Andrey Pokrovskiy
generated > for the library thereafter. I've not tested QT Creater, but I'll see if I > can verify your difficulties next week. > ____ > From: Andrey Pokrovskiy [wonder.m...@gmail.com] > Sent: Thursday, August 20, 2015 2:29 PM > To: K

Re: [CMake] Modern superbuild template including support for

2015-08-20 Thread Andrey Pokrovskiy
Such approach doesn't work with IDE. For example, when I open main CMakeLists.txt in Qt Creator I only see two *.cmake files. Superbuilds use ExternalProject_Add() which kills a lot CMake benefits when used for CMake project from CMake project. On Thu, Aug 20, 2015 at 9:28 AM, Knox, Kent wrote: >

[CMake] Best practices question: Organizing a library project

2015-08-14 Thread Andrey Pokrovskiy
Hi, What is best way to organize a library project that uses CMake as its build system? One advantage that I would expect from a library project with CMake build system is easy integration with another projects that also use CMake. In other words it should be very simple to include (add a dependen

Re: [CMake] ExternalProject_Add not re-building when source changes

2015-04-24 Thread Andrey Pokrovskiy
I don't like my current solution for such problem, but it works for me well. Note "file(GLOB_RECURSE ..." and custom "copy" step in the end. Also you can try to google "cmake super build" which probably will provide you more ideas. include(ExternalProject) set(WEBSOCKETS_PATCH_DIR "${CMAKE_CU

Re: [CMake] ExternalProject can't have interface library as a dependency

2015-04-18 Thread Andrey Pokrovskiy
y wrote: > Andrey Pokrovskiy wrote: > >> /* I'm using cmake-3.2.20150331-gb190c. */ >> >> I have a following construction: >> >> ExternalProject_Add( >> websockets_ep >> DEPENDS ev openssl >> ...) >> >> But i

[CMake] ExternalProject can't have interface library as a dependency

2015-04-16 Thread Andrey Pokrovskiy
/* I'm using cmake-3.2.20150331-gb190c. */ I have a following construction: ExternalProject_Add( websockets_ep DEPENDS ev openssl ...) But it so happened, that "openssl" is a INTERFACE library. Because of that I get an obscure error: CMake Error at /usr/share/cmake/shar

Re: [CMake] Consuming results of ExternalProject_Add

2015-02-18 Thread Andrey Pokrovskiy
this "super-build" thing in case my solution will not scale too well. [1] http://www.cmake.org/pipermail/cmake/2015-February/059885.html On Tue, Feb 17, 2015 at 9:58 PM, Jean-Christophe Fillion-Robin wrote: > Hi Andrey, > > On Tue, Feb 17, 2015 at 5:52 PM, Andrey Pokrovskiy &

[CMake] add_dependencies: Disallow use with INTERFACE_LIBRARY. WHY?!?

2015-02-17 Thread Andrey Pokrovskiy
Hi, Current CMake disallows Interface Libraries to have dependencies. However, I suspect that was done for a reason. Here is the commit for that change: commit 6db7e6d24c68085f16dcf6d8a86ae0f74e9a1f01 Author: Stephen Kelly Date: Wed Dec 25 15:11:50 2013 +0100 add_dependencies: Disal

Re: [CMake] Consuming results of ExternalProject_Add

2015-02-17 Thread Andrey Pokrovskiy
CMake already has a concept of "libraries" (added with add_library). There should be a way of saying "Hey, this static library comes from that external project. It also requires such and such include directories". On Tue, Feb 17, 2015 at 1:53 PM, Jean-Christophe Fillion-Robin

[CMake] Consuming results of ExternalProject_Add

2015-02-17 Thread Andrey Pokrovskiy
Hi, I'm using ExternalProject_Add() to build OpenSLL library. After install step I have following artifacts available: * libcrypto.a * libssl.a * include/openssl/*.h I wonder, what is the "canonical" way to make those artifacts available for other targets in the project? FindPackage style thing

[CMake] add_jar OUTPUT_DIR contains intermediate files

2015-01-23 Thread Andrey Pokrovskiy
Hi, I noticed that when I explicitly specify OUTPUT_DIR for add_jar, like this: add_jar(demo SOURCES Main.java OUTPUT_DIR ${EXECUTABLE_OUTPUT_PATH}) All intermediate files for that target also go to specified output dir. So I end up with ./CMakeFiles/demo.dir directory in my ${EX

[CMake] Separating spaces are escaped by JOIN generator expression

2014-12-16 Thread Andrey Pokrovskiy
Let's say: set(WORDS "cat" "dog") and then: "" which will produce "cat\ dog" instead of "cat dog". Looks like a bug to me. Minimal example to reproduce the issue. File - CMakeLists.txt: cmake_minimum_required(VERSION 3.1) project(escape_me_not) set(WORDS "cat" "dog") add_custom_command(OUTPUT

Re: [CMake] library dependcies and add_library(OBJECT)

2014-11-18 Thread Andrey Voropaev
On Mon, Nov 17, 2014 at 10:26 PM, Stephen Kelly wrote: > avo...@mail.ru wrote: > >> What should I add >> to B/CMakeLists.txt to successfully build my executable? > > You might be able to add an INTERFACE library and populate its > INTERFACE_SOURCES using the target_sources command: > > http://www

Re: [CMake] Calling of find_package from function

2014-11-07 Thread Andrey Upadyshev
it's here https://gist.github.com/oliora/4961727299ed67337aba Andrey On Fri, Nov 7, 2014 at 4:56 PM, Andrey Upadyshev wrote: > Thank you for advice Petr! I will go with this solution if can't find > another one. CMake macroses are slightly weird so I'm trying to avoid the

Re: [CMake] Calling of find_package from function

2014-11-07 Thread Andrey Upadyshev
Thank you for advice Petr! I will go with this solution if can't find another one. CMake macroses are slightly weird so I'm trying to avoid them :) On Fri, Nov 7, 2014 at 4:39 PM, Petr Kmoch wrote: > Hi Andrey. > > As a workaround, you could make the calling context a

[CMake] Calling of find_package from function

2014-11-07 Thread Andrey Upadyshev
kage to set all variables in my function caller's scope? I.e. something like find_package(... PARENT_SCOPE)? Thank you, Andrey -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support

Re: [CMake] Windows XP + CMake + VS2013

2013-12-09 Thread Andrey Upadyshev
Hi Stefan, You should add CMake command option *-T vc120_xp* BR, Andrey Upadyshev On Sun, Dec 8, 2013 at 7:22 PM, Stefan Fendt wrote: > Hi, > > I'm using CMake 2.8.12 together with MSVC 2013 and need to produce a > binary which is (still) compatible with Windows XP SP3. >

Re: [CMake] ExternalProject breaks a parallel make.

2011-04-06 Thread Andrey Nikitin
В Sat, 2 Apr 2011 14:08:36 -0400 David Cole пишет: > Try with CMake 2.8.4 -- we fixed some parallel make propagation issues > in 2.8.3 or 2.8.4... Using "$(MAKE)" now. Should avoid the problem > you're reporting here. Your advice for 2.8.2 solved the problem, thanks David. BUILD_COMMAND = $(MAKE

[CMake] ExternalProject breaks a parallel make.

2011-04-02 Thread Andrey Nikitin
Hi. I have problem with make -jN and Cmake ExternalProject. % alias make="make -j5" % make Scanning dependencies of target EXTLIB [ 0%] Creating directories for 'EXTLIB' [ 0%] No download step for 'EXTLIB' [ 0%] [ 0%] No patch step for 'EXTLIB' No update step for 'EXTLIB' [ 0%] No configure s

Re: [CMake] Cross-compilation vs FindQt4.cmake

2010-06-12 Thread Andrey .
08.06.10, 00:44, "Alexander Neundorf" : > Can you please put all that in the cmake bug tracker > (http://public.kitware.com/Bug) so all that information doesn't get lost ? I've posted a bug #10823. You can find it at [1]. [1] http://public.kitware.com/Bug/view.php?

Re: [CMake] Cross-compilation vs FindQt4.cmake

2010-06-05 Thread Andrey .
the location of the target Qt > installation, i.e. the lib and include dirs ? In general, no. Any such relation is either quite cross-environment specific or non-existent. For example, 1) moc and uic are located at /home/me/cross-devel/tools/bin 2) target lib dir is /home/me/cross-devel/build/my_in

Re: [CMake] Cross-compilation vs FindQt4.cmake

2010-06-01 Thread Andrey .
bunch of set() statements > > and a couple of include() directives. > > Yes, what makes FindQt4.cmake big is all the flexibility to find everything > for the different versions on the different OSs. It started small... In addition, there are a great number of Qt components, which magnifie

Re: [CMake] Cross-compilation vs FindQt4.cmake

2010-06-01 Thread Andrey .
ngs that prevent > cross-compiling the last few cmake releases. It could probably go a bit > quicker, but I wanted to be careful to not break things. Yeah, I greatly appreciate these efforts! Many packages compile flawlessly for both native and cross

Re: [CMake] Cross-compilation vs FindQt4.cmake

2010-05-31 Thread Andrey .
ccessfully compile a qt4-based application with such a hacked FindQt4.cmake with bunch of set() statements and a couple of include() directives. > CC'ing the cmake -list. OK. -- Andrey Hippo. ___ Powered by www.kitware.com Visit other Kitwar

[CMake] Setting target properties

2009-08-27 Thread Andrey Maslennikov
ag2__ ). In this case no keys were defined... It's very strange, because CMake's documentation present usage example with multiple properties in one command. I solved this issue with variable which contains all needed keys. -- -- Andrey ___

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Andrey Sploshnov
>From documentation to CMake 2.6.x: "Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK." What are you actually trying to do? If you want to perform some actions before actually build the target, use of add

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Andrey Sploshnov
riate configuration? > > I also was not able to find CMAKE_BUILD_STATUS in the 2.6 documentation. > Where can I read about this variable? > > On Sun, Dec 21, 2008 at 1:49 PM, Andrey Sploshnov < > ice.nightcraw...@gmail.com> wrote: > >> May be you need somethin

Re: [CMake] Add configuration support to include_directories()

2008-12-21 Thread Andrey Sploshnov
May be you need something like this? include_directories (C:\includes\foo\all) if (CMAKE_BUILD_STATUS STREQUAL "Debug") include_directories (C:\includes\foo\debug) elseif (CMAKE_BUILD_STATUS STREQUAL "Release") include_directories (C:\includes\foo\release) endif (CMAKE_BUILD_STATUS STREQU

Re: [CMake] Building cmake-2.4.6 against xmlrpc-c-1.09.00

2007-02-26 Thread Andrey Rahmatullin
On Mon, Feb 26, 2007 at 07:22:19PM +0100, Thomas Klausner wrote: > I'm trying to make the cmake-2.4.6 package in pkgsrc depend on the > xmlrpc-c-1.09.00 package. I already managed to make cmake depend > on pre-installed curl, expat, and zlib libraries. > > The problem I see with xmlrpc-c is that

Re: [CMake] CMake and portable dynamic library loading?

2006-10-16 Thread Andrey Rahmatullin
On Mon, Oct 16, 2006 at 11:24:58AM -0700, Alan W. Irwin wrote: > The obvious solution is to build it internally. When KDE used this > library was that the option chosen? True for SIM. > If so, could you point me to the CMake files used to build libltdl? We switched from libltdl prior to using cm

Re: [CMake] CMake and portable dynamic library loading?

2006-10-01 Thread Andrey Rahmatullin
On Sat, Sep 30, 2006 at 08:34:58AM -0700, Alan W. Irwin wrote: > However, libltdl does not solve the issue of how to dynamically load > plug-ins on windows systems. SIM always used libltdl on all platforms without problems (until we switched to QLibrary). -- WBR, wRAR (ALT Linux Team) signature

Re: [CMake] CMake and portable dynamic library loading?

2006-09-30 Thread Andrey Rahmatullin
On Sat, Sep 30, 2006 at 11:47:33AM -0700, Alan W. Irwin wrote: > Excuse my windows ignorance, but is LoadLibrary the standard way to > dynamically load plug-ins for all the varieties of windows? Yes. -- WBR, wRAR (ALT Linux Team) signature.asc Description: Digital signature

Re: [CMake] -fPIC .. (help w/ SET_TARGET_PROPERTIES)

2006-09-27 Thread Andrey Rahmatullin
On Wed, Sep 27, 2006 at 10:42:30AM +0200, Axel Roebel wrote: > IF("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") That is not correct. Every shared lib should be compiled with fPIC, on x86_64 or not. Yes, shared libs with TEXTREL can work on x86, but it doesn't mean that it's OK to compile them with

Re: [CMake] -fPIC flag on object build for static lib targets?

2006-09-26 Thread Andrey Rahmatullin
On Tue, Sep 26, 2006 at 07:33:44PM -0700, Alan W. Irwin wrote: > Could you clarify your goal here? Linking of shared lib (being built) with objects from static lib (built with cmake). Here the objects from the static lib are compiled without -fPIC. -- WBR, wRAR (ALT Linux Team) signature.asc De