[CMake] add_custom_command dependencies from file?

2016-09-06 Thread Evgeniy Dushistov
Hi, I need to solve problem described here: https://cmake.org/pipermail/cmake/2005-August/007091.html Basically I have test.i (swig input): %module native %include "lib.hpp" %{ #include "lib.hpp" %} swig with -M option can tell that generated by it code depend on "lib.hpp", but how I can

[CMake] ctest + timeout -> coredump, how?

2016-05-13 Thread Evgeniy Dushistov
Hi, I want to get coredump of test that was stopped by ctest because of timeout. I look at source code of cmake (kwsysProcessKill), and looks like there is no way to configure which signal number will be used to kill process. Am I right, and there is no way to force ctest to use signal that

Re: [CMake] qt+cmake != qt+qmake on mac os x

2016-05-09 Thread Evgeniy Dushistov
On Sun, May 8, 2016 at 11:20 PM, Craig Scott wrote: > Add the MACOSX_BUNDLE keyword to your add_executable() command. See the > CMake docs for details. Thanks, it works. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] qt+cmake != qt+qmake on mac os x

2016-05-08 Thread Evgeniy Dushistov
Hi, I created simple hello world with qt5 (5.6) using cmake 3.5.2: set(test_app_UIS mainwin.ui) set(test_app_MOC_HDRS mainwin.hpp) qt5_wrap_ui(test_app_UIS_H ${test_app_UIS}) qt5_wrap_cpp(test_app_MOC_SRCS ${test_app_MOC_HDRS}) add_executable(test_app ${test_app_UIS_H} ${test_app_MOC_SRCS}

[CMake] generator-expressions + pch - need new magic

2014-10-05 Thread Evgeniy Dushistov
Hi, in my project I used such magic code for precompiled headers support (gcc,clang only): #take gcc_flags from ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${_build_type}} get_target_property(... COMPILE_FLAGS) get_directory_property(...

Re: [CMake] generator-expressions + pch - need new magic

2014-10-05 Thread Evgeniy Dushistov
}, -D) else () list(APPEND gcc_flags -D${flag}) endif () endforeach() but may there is better solution? On Sun, Oct 5, 2014 at 10:25 AM, Evgeniy Dushistov dushis...@gmail.com wrote: Hi, in my project I used such magic code for precompiled headers support (gcc,clang only

[cmake-developers] [PATCH] [RFC] handle c dependicies for files with utf-8 BOM

2013-10-14 Thread Evgeniy Dushistov
Hi, here is description of the problem: http://www.cmake.org/pipermail/cmake/2013-October/056008.html in short, cmake not handle dependencies of c/c++ source file from c/c++ header file, if source file has utf-8 BOM. So, if for example in your team used Visual Studio with preference to save files

[CMake] cmake make generator do not handle header source dependicies?

2013-10-06 Thread Evgeniy Dushistov
In attachment(Is mail list accpet attachments?) simple example with test.cpp and test.h. test.cpp include test.h. I generate on linux with help of cmake (2.8.11.2) make files, build it, then exec touch test.h, after that rerun make, and it do nothing: $ mkdir build cd build $ cmake .. make bla