[CMake] Help on first cmake project

2017-07-06 Thread Florian Lindner
Hello, coming from scons I want to take a look into cmake... My CMakeList.txt looks like: cmake_minimum_required (VERSION 3.0) project (ASTE) add_executable(readMesh readMesh.cpp) find_library(precice precice PATHS $ENV{PRECICE_ROOT}/build/last) target_link_libraries(readMesh ${precice}) set(

Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Sean Wayland
Hi Micha, Thanks very much for the email. That seemed to make a small difference! With both those lines commented out these errors are generated ( below my email ) . I still have included project(CATSMAT) at the top line of the cmake file in the catsmat directory I tried commenting out each of tho

Re: [CMake] Parallel moc for Qt files

2017-07-06 Thread Cristian Adam
On Thu, Jul 6, 2017 at 10:00 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > I have a large list of files that need to have Qt's 'moc' run on them (107 > headers). I use all the normal CMake facilities for Qt based projects. I > noticed that the generation of the moc files are done ser

[CMake] Parallel moc for Qt files

2017-07-06 Thread Michael Jackson
I have a large list of files that need to have Qt's 'moc' run on them (107 headers). I use all the normal CMake facilities for Qt based projects. I noticed that the generation of the moc files are done serially. Is there a flag or anything that I can use to run the generation in Parallel? I ask

Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Micha Hergarden
On 06-07-17 15:59, Sean Wayland wrote: > Hi Micha, > Thanks very much I tried that .. I added it to the application > directory cmakelists.txt file . Same issue .. It's already in the top > level cmake file which looks like this .. > > project(CATSMAT) > cmake_minimum_required(VERSION 3.6.3) > > >

Re: [CMake] Enhanced version management for the command "project"

2017-07-06 Thread Robert Maynard
Hi, These kind of conversations are better suited to the CMake Developers Mailing List. ( https://cmake.org/mailing-lists/ ) On Sat, Jul 1, 2017 at 1:33 PM, SF Markus Elfring wrote: > Hello, > > CMake provides an interface for the specification of version information > by the command "project".

Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Sean Wayland
Hi Micha, Thanks very much I tried that .. I added it to the application directory cmakelists.txt file . Same issue .. It's already in the top level cmake file which looks like this .. project(CATSMAT) cmake_minimum_required(VERSION 3.6.3) if (APPLE) set(CMAKE_C++_FLAGS -mmacosx-version-min

[CMake] Errors when writing manifest

2017-07-06 Thread Petr Kmoch
Hi all. I'm on Windows and I'm building my CMake project using MSVC. When I select Visual Studio as the CMake generator, everything works perfectly. However, when I use either the NMake or Ninja generator (in a properly configured command prompt), most of my DLL linking steps fail with the followi