[CMake] cotire and BOOST_PP error

2017-06-11 Thread Olaf Peter
Hello, to reduce my compile time I try to start with cotire (compile time reducer) from https://github.com/sakra/cotire and run into problems which I wasn't able to reduce yet. I'm using boost spirit and boost.test. The error rises: [ 62%] Building CXX precompiled header sources/_parser

[CMake] add_custom_command on test input files

2017-04-21 Thread Olaf Peter
Hello, for my project I have a sub dir with test case which feeds the tests '*.input' and allows to check to output '*.expected'. For documentation purpose, I have a python script which generates a TestMatrix.rst file. Using CMake I have: dir structure: $root/{src,include,utils,test} test/

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Olaf Peter
Hello Leif, > Are your libraries mutually dependent? You may be hitting the > mutually-dependent static library problem. Look for the word "mutual" near > the end of > http://www.cmake.org/cmake/help/v3.0/command/target_link_libraries.html, > that section explains some of what is going on. y

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Olaf Peter
Hello Marcel, Olaf, Unless your code snippets are incomplete, I'm missing the following statement in ./source/eea/ui/CMakeLists.txt target_link_libraries(eea_ui_lib eea_ui_schematic_lib) I'm not sure this is causing the link error, but it's worth a try. thank you a lot, this solv

Re: [CMake] Linker error with sub project's static libs

2014-08-21 Thread Olaf Peter
no idea here? It's seems to be a C++ problem, but how to solve it. Changing the order of target_link_libraries(eea eea_ui_schematic_lib eea_ui_lib to target_link_libraries(eea eea_ui_lib eea_ui_schematic_lib makes it even worser - more unresolved symbols. So what hap

[CMake] Linker error with sub project's static libs

2014-08-19 Thread Olaf Peter
Hello, for my project I have the following structure in my project directory: ./CMakeLists.txt ./source/CMakeLists.txt ./source/eea/CMakeLists.txt ./source/eea/ui/CMakeLists.txt ./source/eea/ui/schematic/CMakeLists.txt with ---8<--- ./CMakeLists.txt: project(eea) ... ---8<--- ./source/CMakeLis

Re: [CMake] CDT generator help: path discovery and other items

2013-06-03 Thread Olaf Peter
Eclipse does have some issues, where cmake simply cannot help. Some settings are stored neither in the .project nor in the .cproject files, but inside the workspace metedata, which cmake cannot touch (because it is somewhere else, it is binary, undocumented, etc.). What are this for issues? Wher

Re: [CMake] compiler defines for sub projects

2013-04-06 Thread Olaf Peter
BAR_OPTION "enable bar" OFF) if(FOO_OPTION) set(CUSTOM_DEFINE "FOO_X") elseif(BAR_OPTION) set(CUSTOM_DEFINE "FOO_Y") else set(CUSTOM_DEFINE "OTHER") endif() set_target_properties(my_lib PROPERTIES COMPILE_DEFINITIONS ${CUSTOM_DEFINE

Re: [CMake] compiler defines for sub projects

2013-04-05 Thread Olaf Peter
add_definitions("-DOTHER") > endif() > > -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Olaf Peter > Sent: Friday, April 05, 2013 12:58 PM > To: cmake@cmake.org > Subject: [CMake] compiler defines for sub pr

[CMake] compiler defines for sub projects

2013-04-05 Thread Olaf Peter
Hello, is it possible to inherit compiler defines for sub projects in sub directories? I have a library project which can be configured at compile time using preprocessor defines (cmake option) option(FOO_OPTION "enable foo" OFF) option(BAR_OPTION "enable bar" OFF) if(FOO_OPTION) set_

[CMake] Dependencies of generated files

2013-02-13 Thread Olaf Peter
Hello, obviously I have a problem with the understanding of generating dependencies of generated files. generate_foo_static_lexer is using ${foo_LEXER_HPP} to generate a header file ${foo_STATIC_LEXER_HPP}. Each time ${foo_STATIC_LEXER_HPP} is changed the header shall be regenerated. Later,

Re: [CMake] Question about generate a source file during the build

2013-02-03 Thread Olaf Peter
Hi Sébastien, > > ---8<--- > > project(coolcoding) > > > > # generate coolcoding's static lexer > > set(COOLCODING_BAR_HPP > ${PROJECT_BINARY_DIR}/include/foo/io/coolcoding/coolcoding_bar.hpp) > > > > add_executable(generate_coolcoding_bar generate_coolcoding_bar.cpp) > > > > add_custom_

[CMake] Question about generate a source file during the build

2013-02-03 Thread Olaf Peter
Hi, I've read the FAQ hopefully carefully. But I did run into a problem with a out-of-source-build: ---8<--- project(coolcoding) # generate coolcoding's static lexer set(COOLCODING_BAR_HPP ${PROJECT_BINARY_DIR}/include/foo/io/coolcoding/coolcoding_bar.hpp) add_executable(generate_coolcodin

[CMake] Top-Level Project with libs and unit test

2010-03-26 Thread Olaf Peter
Hi, I've a top level project which is using Qt. Therefore I've a lot of defines and compiler switches on. Further more, there is an of Qt independent library with unit tests. $ cat project/CMakeLists.txt ... add_definitions(-DQT_NO_KEYWORDS) add_definitions(-DQT_NO_CAST_FROM_ASCII) add_definition

Re: [CMake] Qt - Private implementation slot and required cmake special rules

2010-03-03 Thread Olaf Peter
John Drescher schrieb: > On Wed, Mar 3, 2010 at 1:37 PM, Olaf Peter wrote: >> I try to use Qt's internal Stuff for my own purpose. I want to compile >> the moc file separately which is with cmake very simple. Anyway, I have >> to tweak moc for this. >> >> I h

[CMake] Qt - Private implementation slot and required cmake special rules

2010-03-03 Thread Olaf Peter
I try to use Qt's internal Stuff for my own purpose. I want to compile the moc file separately which is with cmake very simple. Anyway, I have to tweak moc for this. I have to add the private type to the moc file generated otherwise I get an compiler error about incomplete type (the "public" heade

Re: [CMake] adding extra target to CMakeLists.txt

2010-02-11 Thread Olaf Peter
OK, now I have it: add_custom_target (syntax-check COMMAND $(CXX) $(CXXFLAGS) -Wall -Wextra -pedantic -fsyntax-only $(CHECK_SRC) VERBATIM) But how can I get there the Defines and Includes from regular target compile? Thanks, Olaf ___ Powered by www.k

Re: [CMake] adding extra target to CMakeLists.txt

2010-02-11 Thread Olaf Peter
Tyler Roscoe schrieb: > On Wed, Feb 10, 2010 at 09:08:50PM +0100, Olaf Peter wrote: >> How can I add an extra lint/syntax check target for my executable, like: >> >> check-syntax: >> c++ -o /dev/null ${CXX_FLAGS} ${CXX_DEFINES} -S ${MY_PROJECT_SOURCES} >> .PHO

[CMake] adding extra target to CMakeLists.txt

2010-02-10 Thread Olaf Peter
How can I add an extra lint/syntax check target for my executable, like: check-syntax: c++ -o /dev/null ${CXX_FLAGS} ${CXX_DEFINES} -S ${MY_PROJECT_SOURCES} .PHONY: check-syntax to make created Makefile?? thanks, Olaf ___ Powered by www.kitwar

[CMake] CMake, Qt and Boost.signals

2010-02-01 Thread Olaf Peter
Hi, following http://www.boost.org/doc/libs/1_41_0/doc/html/signals/s04.html#id1677853 I can mix Qt and Boost.Signals if I add CONFIG += no_keywords to to qmkae projectfile. How can I get it with cmake? Reagrds, Olaf ___ Powered by www.kitware.co

[CMake] convert variable from hex to integer

2008-09-19 Thread Olaf Peter
Hi, for a generated version header I need to convert a given hex to an integer. I've wrote: set(RELEASE_LEVEL_ALPHA 0xA)# For internal use set(RELEASE_LEVEL_BETA 0xB)# For internal use set(RELEASE_LEVEL_GAMMA 0xC)# For release candidates set(RELEASE_LEVEL_FINAL 0xF)# For final

[CMake] Eclipse Generator: build specific environment variables

2008-08-18 Thread Olaf Peter
Hi, how can I set environment variables for eclipse? cmakelist.txt is configured http://www.cmake.org/Wiki/CMake:Eclipse: Parsing Errors more efficiently. Anyway, it seems the parser expect english :-) How can I set the environment variable LANG=en for compiler or make fot he build/compiler proces

[CMake] cmake 2.6.1 with generator for eclipse problem

2008-08-06 Thread Olaf Peter
Hi, the following command line works as expected (out of source build): $ ../cmake-2.6.1-Linux-i386/bin/cmake ../project -- The C compiler identification is GNU ... -- Configuring done -- Generating done -- Build files have been written to: /home/olaf/build but: $ ../cmake-2.6.1-Linux-i386/bin/

[CMake] FindQt

2008-07-10 Thread Olaf Peter
Hi, it would be great if FindQt (resp. FindQt4) would support a user file extension for QT4_WRAP_UI, e.h. hpp for the ui header. *.hpp is a common C++ header extension as I use it for my code. Thanks, Olaf ___ CMake mailing list CMake@cmake.org http://w