[Cmake-commits] CMake branch, master, updated. v3.16.0-rc4-382-g0fff8d653c

2019-11-20 Thread Kitware Robot via Cmake-commits
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  0fff8d653c38e20d9b7a4c026b66f45f8078cb41 (commit)
  from  5f630a934aa4b8616aa59988ea70c14065d3a08d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0fff8d653c38e20d9b7a4c026b66f45f8078cb41
commit 0fff8d653c38e20d9b7a4c026b66f45f8078cb41
Author: Kitware Robot 
AuthorDate: Thu Nov 21 00:01:07 2019 -0500
Commit: Kitware Robot 
CommitDate: Thu Nov 21 00:01:07 2019 -0500

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 102b3defc1..76ef7d3988 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,7 +1,7 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 16)
-set(CMake_VERSION_PATCH 20191120)
+set(CMake_VERSION_PATCH 20191121)
 #set(CMake_VERSION_RC 0)
 set(CMake_VERSION_IS_DIRTY 0)
 

---

Summary of changes:
 Source/CMakeVersion.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
https://cmake.org/mailman/listinfo/cmake-commits


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

2019-11-20 Thread Michael Jackson
You can also use cmake to just copy the DLLs into the appropriate directory. 
Here is a snippet from our own projects.

#---
#- This copies all the Prebuilt Pipeline files into the Build directory so the 
help
#- works from the Build Tree
add_custom_target(PrebuiltPipelinesCopy ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory 
${DREAM3D_SUPPORT_DIR}/PrebuiltPipelines

${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/PrebuiltPipelines/
COMMENT "Copying Prebuilt Pipelines into Binary Directory")
set_target_properties(PrebuiltPipelinesCopy PROPERTIES FOLDER ZZ_COPY_FILES)

--
Mike Jackson 


-- 
Michael A. Jackson                 400 S. Pioneer Blvd
Owner, President                   Springboro, Ohio 45066
BlueQuartz Software, LLC           EMail: mailto:mike.jack...@bluequartz.net
Voice: 937-790-1601                Web: http://www.bluequartz.net/
Fax: 937-746-0783



From: CMake  on behalf of Petr Kmoch 

Date: Wednesday, November 20, 2019 at 3:32 AM
To: cen 
Cc: CMake 
Subject: Re: [CMake] Missing dll on program startup - a way automate it?

Hi.

I haven't used it yet, but I believe the target property 
https://cmake.org/cmake/help/latest/prop_tgt/VS_DEBUGGER_ENVIRONMENT.html might 
help you.

Petr

On Wed, 20 Nov 2019 at 01:02, cen  wrote:
Hi

Perhaps not really a cmake problem but here we go. An exe depends on a 
few DLLs which I ship in the repo so the rest of the devs don't have to 
build them or fetch them somewhere else. Cmake finds the libraries and 
project builds just fine, until you run it from VS.. you are welcomed by 
the "missing dll" windows error. So I have to copy all the dlls to the 
build/run folder to make it work but this is a manual step. Is there 
some way in cmake/VS to somehow tell the IDE to append the execution 
$PATH with all the specified library dependencies or something along 
those lines? Ideally my goal is to just run cmake, open VS, build the 
project and run, all automagical.

I would prefer to keep the dynamic linking.


Best regards, cen

-- 

Powered by http://kitware.com/cmake

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org
-- Powered by kitware.com/cmake Kitware offers various services to support the 
CMake community. For more information on each offering, please visit 
https://cmake.org/services Visit other Kitware open-source projects at 
https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: 
https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in 
favor of https://discourse.cmake.org 


-- 

Powered by kitware.com/cmake

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org


Re: [CMake] Testing an exe with gtest - possible?

2019-11-20 Thread Kyle Edwards via CMake
On Wed, 2019-11-20 at 00:54 +0100, cen wrote:
> Hi
> 
> I have an existing c++ exe project which I want to test with gtest.
> I 
> have not yet found an easy way to keep the project as is and test it 
> directly since gtest insists (obviously) to link against the code
> being 
> tested. I found a smart answer on SO to link against object files
> and 
> that works ok but it's messy and a lot of manual setup after cmake 
> project generation, probably impossible to automate in cmake.
> 
> The other quick way is to change the VS project output to a static
> lib. 
> That also works but is a manual step which again not sure can be 
> automated at all. And there is a bigger issue hidden in here.. I
> can't 
> link to this lib due to dual main() entry point.
> 
> So unless there is some smart workaround to keep project as an exe
> and 
> get gtest to work, I guess the only remaining option is to separate
> the 
> main() into a small bootstrap exe and then link against the rest of
> the 
> program (which contains the actual testable logic) as a lib. Finally,
> if 
> I understand correctly, using target_link_libraries will
> automatically 
> set up the two projects as dependent and lib will always get built 
> before the main is run.

Check out the $ generator expression. This will let
you link directly against the object files built for the executable.

This mailing list is deprecated. Please post further discussion to
Discourse:

https://discourse.cmake.org/c/code

Kyle
-- 

Powered by kitware.com/cmake

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org


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

2019-11-20 Thread Petr Kmoch
Hi.

I haven't used it yet, but I believe the target property
https://cmake.org/cmake/help/latest/prop_tgt/VS_DEBUGGER_ENVIRONMENT.html
might help you.

Petr

On Wed, 20 Nov 2019 at 01:02, cen  wrote:

> Hi
>
> Perhaps not really a cmake problem but here we go. An exe depends on a
> few DLLs which I ship in the repo so the rest of the devs don't have to
> build them or fetch them somewhere else. Cmake finds the libraries and
> project builds just fine, until you run it from VS.. you are welcomed by
> the "missing dll" windows error. So I have to copy all the dlls to the
> build/run folder to make it work but this is a manual step. Is there
> some way in cmake/VS to somehow tell the IDE to append the execution
> $PATH with all the specified library dependencies or something along
> those lines? Ideally my goal is to just run cmake, open VS, build the
> project and run, all automagical.
>
> I would prefer to keep the dynamic linking.
>
>
> Best regards, cen
>
> --
>
> Powered by kitware.com/cmake
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit https://cmake.org/services
>
> Visit other Kitware open-source projects at
> https://www.kitware.com/platforms
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
> This mailing list is deprecated in favor of https://discourse.cmake.org
>
-- 

Powered by kitware.com/cmake

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit https://cmake.org/services

Visit other Kitware open-source projects at https://www.kitware.com/platforms

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

This mailing list is deprecated in favor of https://discourse.cmake.org