Re: [cmake-developers] adding FindJsonCpp

2016-06-30 Thread Farbos a
Hi,

2016-06-29 19:31 GMT+02:00 Ben Boeckel <ben.boec...@kitware.com>:
> On Wed, Jun 29, 2016 at 17:36:45 +0200, Farbos a wrote:
>> I have a concern with generating package configs:
>>
>> 1 It seems to contain absolute path, so not really portable with git.
>
> The actual config files are generated at build time, not committed to
> the source control (template files with @variable@ spots to insert
> values are committed).

I am not sure to understand what you are saying, did they do something
wrong or could we add some stuff in order to make in work with a
source control software. Just to be sure we are talking about these
lines: 
https://github.com/open-source-parsers/jsoncpp/blob/master/CMakeLists.txt#L144

>> 2 It does not respect the naming of imported targets with `::`. As you
>> can see here: 
>> https://cmake.org/cmake/help/git-master/manual/cmake-developer.7.html#a-sample-find-module
>> The fact that it produces an appropriate diagnostic messages if that
>> target does not exist is really helpful.
>
> Not sure exactly what you mean when the config file approach "does not
> respect" imported target names, but the file that CMake generates is not
> the direct config file, but is usually included (I have CMake generate
> ${pkg}-targets.cmake). Checking for targets in the top-level script is
> certainly possible.

When I look at the generated file here jsoncppConfig.cmake, you find
these lines:
```
# Create imported target jsoncpp_lib
add_library(jsoncpp_lib SHARED IMPORTED)

set_target_properties(jsoncpp_lib PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "/home/hevy/jsoncpp/0.10.5/include"
)
...
```

The thing here is the library name is jsoncpp_lib and not something
like jsoncpp::jsoncpp_lib. And like I said earlier the name "::" is a
lot more helpful.

Thanks,

-- 
Arnaud FARBOS
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


[cmake-developers] adding FindJsonCpp

2016-06-29 Thread Farbos a
Hi,

I would like to add a find module: FindJsonCpp.cmake that I attached.
the library github: https://github.com/open-source-parsers/jsoncpp.

This library allows JSON manipulation. It's used by more than one
person and I think it could useful to add a find module for this
library.

Thanks,

-- 
Arnaud FARBOS


FindJsonCpp.cmake
Description: Binary data
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

[cmake-developers] handling components in Find****

2016-06-22 Thread Farbos a
Hi,

I am trying to write a Find module with components and I am not sure
of how it should be written.
I attached the find module, Could someone tell me if I did it well?

Thanks,

-- 
Arnaud FARBOS


FindILMBase.cmake
Description: Binary data
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [cmake-developers] [PATCH] add debug glew to FindGLEW

2016-06-21 Thread Farbos a
I am not sure to understand why you removed GLEW_LIBRARY:

-mark_as_advanced(GLEW_INCLUDE_DIR GLEW_LIBRARY)
+mark_as_advanced(GLEW_INCLUDE_DIR)


2016-06-20 21:09 GMT+02:00 Brad King <brad.k...@kitware.com>:
> On 06/20/2016 10:52 AM, Farbos a wrote:
>> Here is the patch fixed.
>
> Thanks, applied:
>
>  FindGLEW: Search for debug and release configurations separately
>  https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6087b9e4
>
> -Brad
>



-- 
Arnaud FARBOS
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


Re: [cmake-developers] [PATCH] add debug glew to FindGLEW

2016-06-20 Thread Farbos a
Brad,

Here is the patch fixed.

Thanks,


2016-06-20 16:17 GMT+02:00 Brad King <brad.k...@kitware.com>:
> On 06/20/2016 07:55 AM, Farbos a wrote:
>> I added the Glew debug library to the FindGLEW.cmake, here is the patch.
>
> Good start.  Here are some comments:
>
> * For compatibility with scripts that set GLEW_LIBRARY we need to
>   honor the old name if it is set.  See FindZLIB for an example.
>   (Near the "Allow ZLIB_LIBRARY to be set manually" comment.)
>
> * The imported target needs to have each configuration added only
>   if it exists.  See FindZLIB for an example.  IMPORTED_CONFIGURATIONS
>   needs to list the available configurations.
>
> Thanks,
> -Brad
>



-- 
Arnaud FARBOS


0001-add-debug-glew-to-FindGLEW.patch
Description: Binary data
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

[cmake-developers] [PATCH] add debug glew to FindGLEW

2016-06-20 Thread Farbos a
Hi,

I added the Glew debug library to the FindGLEW.cmake, here is the patch.
Tell me if everything looks good and if I can do a pull request.

Thanks,

-- 
Arnaud FARBOS


0001-add-debug-glew-to-FindGLEW.patch
Description: Binary data
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers