[CMake] QT + CMake + Visual Studio = ui files refresh

2016-06-16 Thread Tiago Macarios
Hi, I am currently using QT + CMake + Visual Studio and everything works great. Problem I am having is that if I change a .ui file Visual Studio does not seem to capture that during the build. If I just "touch" the header file, them everything works fine (moc gets triggered). Is there a way to

[CMake] cpack generator variable

2016-02-26 Thread Tiago Macarios
Hi All, I have a cmake project which one of the install targets is a collection of files. This files change depending on the configuration (Release, Debug...). I would like to be able to install the files like so: install(DIRECTORY $ DESTINATION bin COMPONENT files) >From the docs I see

[CMake] AUTOMOC with files on different folders

2016-05-10 Thread Tiago Macarios
Hi, I am having trouble using AUTOMOC with a project where header files and source files are in different sub-directories. I wrote a detailed stack overflow question here: http://stackoverflow.com/questions/37151163/cmake-automoc-with-files-on-different-folders and would really appreciate if

Re: [CMake] AUTOMOC with files on different folders

2016-05-12 Thread Tiago Macarios
20, Hendrik Sattler <p...@hendrik-sattler.de> > wrote: > > > > > > > > Am 12. Mai 2016 00:00:12 MESZ, schrieb Tiago Macarios < > tiagomacar...@gmail.com>: > >> Hi Attila, > >> > >> Thank you for your help. You are right, if I ap

Re: [CMake] AUTOMOC with files on different folders

2016-05-11 Thread Tiago Macarios
At least > it does for us, in a very similar setup. > > > http://acode-browser.usatlas.bnl.gov/lxr/source/atlas/graphics/VP1/VP1Gui/CMakeLists.txt > > Cheers, > Attila > > > On 11 May 2016, at 07:14, Tiago Macarios <tiagomacar...@gmail.com> > wro

Re: [CMake] Bash on ubuntu on windows as target

2016-08-11 Thread Tiago Macarios
make more sense however to make it a > CMAKE_SYSTEM_NAME? If I remember correctly that’s how MinGW works, and this > should be something very similar. > > > > > > *Feladó: *Tiago Macarios <tiagomacar...@gmail.com> > *Elküldve: *2016. augusztus 11., csütörtök 1:51 > *Címzett: *CMa

[CMake] Bash on ubuntu on windows as target

2016-08-10 Thread Tiago Macarios
Hi All, Windows 10 anniversary edition comes with support to execute Linux binaries. I have been trying to use it with one of our projects, but I have been getting a weird error. Maybe someone can help me? The target is pretty simple: set(BASH "C:\\Windows\\System32\\bash.exe") set(ARGS

Re: [CMake] skip install of subdirectory

2016-07-20 Thread Tiago Macarios
Hi Alan, Thanks a lot! Yeah I was thinking about something along those lines, but i was wondering if there is a solution that does not involve modifying the submodules. On Wed, Jul 20, 2016 at 12:09 PM, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote: > On 2016-07-20 11:02-0700 Tiago

[CMake] skip install of subdirectory

2016-07-20 Thread Tiago Macarios
Hi, I have a project which uses git submodules to manage it's dependencies. Right now we want to add a installer to it, problem we have is that some of the dependencies have their own "install" directives. Is there a way to ignore a project install command? Long version case it is unclear: main

[CMake] set file property from function

2016-07-18 Thread Tiago Macarios
Hi, Is there a way to set a property of a file/source from a function? Below seems to work file outside of a function, but seems not to work inside one. set_property( SOURCE ${AFILE} APPEND PROPERTY COMPILE_FLAGS "/wd4068" ) Do I need to CACHE it? or is it a scope problem? Thanks,

[CMake] clean custom_target

2016-10-25 Thread Tiago Macarios
Hi, Is there a way to have a command to be run during a clean? I have a custom_target which does a fair bit of things and it also has the ability to clean up after itself. So conceptually something like this is what I am looking for: add_custom_target(Name ALL COMMAND command

Re: [CMake] clean custom_target

2016-10-27 Thread Tiago Macarios
cmake/help/l >> atest/prop_dir/ADDITIONAL_MAKE_CLEAN_FILES.html >> >> You can set it to a list of files which will be removed as part of >> running `make clean` or its equivalent for other generators. >> >> Petr >> >> On 26 October 2016 at 04:36, Tiago Ma

[CMake] Get libraries from target

2016-11-08 Thread Tiago Macarios
Hi, Is there a way for me to get CMake libraries out of a target? For example: target_link_libraries(A B C) Can I get B and C from A? What I am trying to do: We are working on adding include-what-you-use into our build system and some of the libraries have their on mapping files. So I was

[CMake] clang-format

2016-11-07 Thread Tiago Macarios
Hi, CMake has "built-in" support for clang_tidy and include-what-you-use. I was wondering why there is not support for clang_format. No one ever contributed, or people think this should not be part of CMake? Tiago -- Powered by www.kitware.com Please keep messages on-topic and check the CMake

[CMake] CMAKE_INCLUDE_CURRENT_DIR on a function

2016-10-24 Thread Tiago Macarios
Hi, Does CMAKE_INCLUDE_CURRENT_DIR need to be set outside of a function? I have a function where I define an executable "add_executable". This executable uses moc'ed Qt clasees, so I need to set CMAKE_INCLUDE_CURRENT_DIR. It seems like I have to set it from the top level script calling the

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR on a function

2016-10-24 Thread Tiago Macarios
gt; behaviour you want (but changing to a macro has other effects, so make sure > you read the docs before going down that path). Also note that setting it > in one directory does not make it apply to subdirectories as well, in case > that matters in your situation. > > > > On Tue, O

Re: [CMake] clang-format

2016-11-14 Thread Tiago Macarios
Well, I don't really mind how it is implemented. During compilation, or as a separate target, but it would be a nice feature. On Sun, Nov 13, 2016 at 11:08 PM, Patrick Boettcher < patrick.boettc...@posteo.de> wrote: > Hi, > > On Mon, 7 Nov 2016 12:06:15 -0800 > Tiago Ma

Re: [CMake] CXX_CLANG_TIDY doesn't handle multiple arguments correctly

2016-11-16 Thread Tiago Macarios
This works for me: CXX_CLANG_TIDY "/usr/bin/clang-tidy" "-checks=modernize-*,readability-*,performance-*" "-fix" I think the difference are the semicolons in the checks instead of commas. On Wed, Nov 16, 2016 at 1:32 PM, Nikita wrote: > Hi,

Re: [CMake] CPACK WIX shortcuts

2016-11-03 Thread Tiago Macarios
o On Thu, Nov 3, 2016 at 1:15 AM, Nils Gladitz <nilsglad...@gmail.com> wrote: > On 11/03/2016 12:23 AM, Tiago Macarios wrote: > > Hi, >> >> I am trying to create an installer with CPACK and WIX as generator. >> Everything works fine except that I cannot

Re: [CMake] CPACK WIX shortcuts

2016-11-03 Thread Tiago Macarios
Yup that did it! Thanks! On Thu, Nov 3, 2016 at 12:10 PM, Nils Gladitz <nilsglad...@gmail.com> wrote: > On 03.11.2016 19:32, Tiago Macarios wrote: > >> >> >> And I am building it like so: >> mkdir build >> cd build >> cmake .. >> cmake

[CMake] CPACK WIX shortcuts

2016-11-02 Thread Tiago Macarios
Hi, I am trying to create an installer with CPACK and WIX as generator. Everything works fine except that I cannot get start menu shortcuts to work. I was using almost the same code as the link below (which seems to be the unit tests for this feature), then I tried to build the unit test and I

[CMake] assembly on windows

2017-03-29 Thread Tiago Macarios
Hi, Is there a simple way to get a Visual Studio + assembly project on windows? This seems to work on Linux: cmake_minimum_required(VERSION 3.7) project(assembler C ASM) set_source_files_properties(hello.s PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp") add_executable(hello hello.s) What

[CMake] Setting properties to interface

2017-04-15 Thread Tiago Macarios
Hi, Given a template-only library exposed throw an interface is it possible to set the necessary CXX_STANDARD necessary to use the library? The code below would be what I am trying to do. add_library(a_lib INTERFACE) set_property(TARGET a_lib PROPERTY CXX_STANDARD 11 PROPERTY

[CMake] CXX_STANDARD use latest

2017-04-15 Thread Tiago Macarios
Hi, One can require a specific CXX_STANDARD to be used, but is it possible to set a minimum and let CMake use the latest as long as it satisfies the minimum? Example code: set_property(TARGET a_lib PROPERTY CXX_STANDARD_MIN 11 PROPERTY CXX_STANDARD_REQUIRED ON PROPERTY

Re: [CMake] Setting properties to interface

2017-04-16 Thread Tiago Macarios
ct wide with CMAKE_CXX_EXTENSIONS) to control > whether or not compiler extensions are enabled too. > > > > On Sun, Apr 16, 2017 at 12:45 PM, Tiago Macarios <tiagomacar...@gmail.com> > wrote: > >> Hi, >> >> Given a template-only library exposed throw an

[CMake] use analyze with visual studio

2018-04-10 Thread Tiago Macarios
I am trying to pass the analyze flags to cl.exe, but I cannot figure out how to get it working, example: cmake_minimum_required (VERSION 2.8.11) set (CMAKE_VERBOSE_MAKEFILE ON) project (cppcore) add_executable (const const.cpp) target_compile_options (const analyze -analyze:plugin EspXEngine.dll)

[CMake] Cannot set ASM_MASM flags?

2018-11-21 Thread Tiago Macarios
I am trying to set a flag for the Microsoft assembler, but no luck. Dummy repro below. I tried setting target_compile_options, but that seems not to work. Then I tried setting CMAKE_ASM_MASM_FLAGS, but that does not seem to work either. It seems like I am hitting this issue: