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
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}
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.
yes it
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
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
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---
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?
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)
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,
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)
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_command(
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)
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 header
John Drescher schrieb:
On Wed, Mar 3, 2010 at 1:37 PM, Olaf Peter ope-de...@gmx.de 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 have to add the private type
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}
.PHONY: check-syntax
You'll want to look
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
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
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
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
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
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:
$
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
22 matches
Mail list logo