[CMake] CMake all_object_files target

2018-07-19 Thread Raphael Grimm
Hi, I want to create a CMake target to build all object files. To do this, I first modified all targets to build an object file lib and link against it:     add_library(exe_object_files OBJECT ${sources})     set(ARMARX_EXE_OBJECT_FILES $)     add_executable(exe $) Since I have multiple execu

Re: [CMake] Packaging dylibs into app bundles

2018-07-19 Thread Michael Jackson
You need to pass in more paths to the “fixup_bundle()” method. Those paths are the paths where the libraries are located so CMake has somewhere else to look in case the absolute path is not encoded in the dylib itself. I could point you to our project but it is pretty scary in there. We use a cu

Re: [CMake] CPack multiple packages

2018-07-19 Thread Domen Vrankar
2018-07-19 18:00 GMT+02:00 dbegun via CMake : > I have a project where a lib and a binary requiring the lib are built in > separate subdirs of the project root. Each dir contains its own > CMakeLists.txt with build/install targets, and there is also a top level > one, which mainly just adds subdir

Re: [CMake] Packaging dylibs into app bundles

2018-07-19 Thread Harry Mallon
Hi, I have been messing arounds with fixup_bundle (which seems to be the correct function). It worked for a small test case, but only if the dylibs required had otool ids of their full path. Ours currently have rpath based ones (e.g. @rpath/libcrypto.dylib). So I get a lot of: /Applications/Xc

Re: [CMake] Packaging dylibs into app bundles

2018-07-19 Thread Stephen McDowell
Hi Harry, I don't know how useful this will be, but the Instant Meshes application creates an app bundle that has always worked reliably for me. Looking at the code, it doesn't appear like there's much custom stuff going on either. It starts here https://github.com/wjakob/instant-meshes/blob/011f

[CMake] Fortran and cmake_depends

2018-07-19 Thread Joshua Buckner
The command /usr/bin/cmake -E cmake_depends "Unix Makefiles” is taking 15 to 20 minutes to complete when I organize my Fortran 90 source files into subdirectories under a root directory with a single CMakeLists.txt file. When the same F90 files are copied into a single directory on the same file

[CMake] CPack multiple packages

2018-07-19 Thread dbegun via CMake
I have a project where a lib and a binary requiring the lib are built in separate subdirs of the project root. Each dir contains its own CMakeLists.txt with build/install targets, and there is also a top level one, which mainly just adds subdirectories etc. I want to add .deb package generation

[CMake] Packaging dylibs into app bundles

2018-07-19 Thread Harry Mallon
Hello all, Is there a good tutorial/article on getting CMake to package required dylibs and frameworks into an app bundle for you on mac. We have a lot of custom stuff to do it and it is fragile and breaks a lot. Thanks, Harry Harry Mallon Senior Software Engineer [http://codex.online/?actio

[CMake] Parallel builds and auto generated header files

2018-07-19 Thread Robert Dailey
I have a Version.hpp file that I have a custom command tied to which basically runs CMake in script mode to perform configure_file() on it during build time. The reason it does this is because it builds Version.hpp using dynamic information, such as defining a macro with the current SHA1 being buil

Re: [CMake] CMake 3.12 rc2 to rc3 Regression

2018-07-19 Thread Robert Maynard
The original author of the feature is looking at how to solve this problem. The author has a post on the developer boards on some of the changes needed to get everything to work: https://cmake.org/pipermail/cmake-developers/2018-July/030760.html On Thu, Jul 19, 2018 at 8:04 AM Michael Jackson wrot

Re: [CMake] CMake 3.12 rc2 to rc3 Regression

2018-07-19 Thread Michael Jackson
Thank you for the links. After reading through all the various discussions is there a time line of when the feature will be added back to CMake? Is it a matter of having somebody to work the problem? Is the problem solvable? -- Michael Jackson | Owner, President BlueQuartz Software

[CMake] problem in finding netcdf library with cmake

2018-07-19 Thread Ufuk Turuncoglu
Hi, First of all, i am new to cmake and i would like to use it in my current project. So, i need to use netcdf library in my project and i am using VTK's FindNetCDF.cmake for it. The content of my CMakeLists.txt file as follows, cmake_minimum_required (VERSION 2.6) # The project name projec