Re: [CMake] Missing dll on program startup - a way automate it?

2019-11-21 Thread Fred Baksik
Adding the relevant directories to PATH in the debugger or build environment should allow them to be found. On Wed, Nov 20, 2019, at 3:32 AM, Petr Kmoch wrote: > Hi. > > I haven't used it yet, but I believe the target property >

Re: [CMake] How to properly add include directories?

2019-10-21 Thread Fred Baksik
On Mon, Oct 21, 2019, at 10:16 AM, David Aldrich wrote: > Hi again, > > My CMakeLists.txt file for my shared library contains: > > add_library(MyLib SHARED my_source.cpp etc.) > target_include_directories( MyLib PRIVATE ../MyHeaders) > > The library builds ok, but there is no dependency on

Re: [CMake] CMake link order

2019-10-18 Thread Fred Baksik
On Fri, Oct 18, 2019, at 11:55 AM, Fred Baksik wrote: > > In target_link_libraries it states that "The library dependency graph is > normally acyclic (a DAG)". I recall from my own experience that the DAG is > not always created the same way when generating the

Re: [CMake] CMake link order

2019-10-18 Thread Fred Baksik
On Fri, Oct 18, 2019, at 6:24 AM, Bon, William wrote: > Hello, > > we are facing an issue while using cmake and we have no idea how to solve or > debug it. > We have a complex and huge project (about 50 subdirectories and dependencies > everywhere), and we are facing issue regarding the link

Re: [CMake] How to make a hierarchical application using CMake?

2019-10-14 Thread Fred Baksik
On Mon, Oct 14, 2019, at 9:13 AM, David Aldrich wrote: > Hi > > I am trying to convert a large software project from makefiles to CMake. The > project is organised as a set of shared ‘star’ libraries, linked to a static > ‘kernel’ library. The current directory arrangement is: > >

Re: [CMake] target_sources vs. PUBLIC_HEADER for libraries

2019-10-11 Thread Fred Baksik
On Fri, Oct 11, 2019, at 3:33 PM, Michael Ellery wrote: > I’d like to make sure I understand two different aspects of header files > management for libraries: > > (1) typically you can add header files to target_sources, but it’s only > helpful for IDEs..so that the IDE will show the header

Re: [CMake] extending CMAKE__LINK_EXECUTABLE

2019-10-08 Thread Fred Baksik
On Tue, Oct 8, 2019, at 9:08 AM, Setzer Sebastian (CM-CI2/ECS2) via CMake wrote: > Dear list, > I need to run a tool after building an executable, which will modify the > executable itself. > I intend to extend the toolchain for this, because it shall be done for every > executable on this

Re: [CMake] Looking for an explanation: What exactly means "install" in cmake language?

2019-10-07 Thread Fred Baksik
On Mon, Oct 7, 2019, at 11:25 AM, Eric Noulard wrote: > > > Le lun. 7 oct. 2019 à 16:49, Cornelis Bockemühl a > écrit : >> Thanks to both you and J Decker: I would say that this is still the part >> that I understood! So basically the word "install" in cmake language could >> be replaced by

Re: [CMake] DEPENDS parameter of add_custom_target

2019-10-07 Thread Fred Baksik
On Mon, Oct 7, 2019, at 6:55 AM, Craig Scott wrote: > > > On Mon, Oct 7, 2019 at 9:32 PM Setzer Sebastian (CM-CI2/ECS2) via CMake > wrote: >> Dear list, >> The manual says: >> https://cmake.org/cmake/help/latest/command/add_custom_target.html >> Reference files and outputs of custom