[CMake] How to use the plugin Geodesic Measurement

2016-10-11 Thread Salazar De Troya, Miguel
Hello I loaded the Geodesic Measurement plugin with the Plugin Manager, but I do not know how to use it. I see it as a filter option, but it is disabled even for point-based data. I haven’t been able to find an example either. I am interested in finding the shortest path between two points in

Re: [CMake] Finding all the libraries except for one located in the last path dir

2016-04-05 Thread Salazar De Troya, Miguel
I resolved this using the option OUTPUT_STRIP_TRAILING_WHITESPACE in execute_process(). https://cmake.org/cmake/help/v3.0/command/execute_process.html I had not seen it. From: Miguel Salazar > Date: Tuesday, April 5, 2016 at 2:31 PM To:

Re: [CMake] Finding all the libraries except for one located in the last path dir

2016-04-05 Thread Salazar De Troya, Miguel
Sorry for the spam, but I found out that there is a line break added by CMake execute_process(COMMAND bash "../grab_libraries.sh" "lib_dirs" "${METHOD}" OUTPUT_VARIABLE lib_dirs) grab_libraries.sh is located in the same folder than CMakeLists.txt and I call cmake .. from a build folder

Re: [CMake] Finding all the libraries except for one located in the last path dir

2016-04-05 Thread Salazar De Troya, Miguel
My apologies, the previous error was because of a trailing whitespace. Although I would still like to know why the terminal variable

[CMake] Finding all the libraries except for one located in the last path dir

2016-04-05 Thread Salazar De Troya, Miguel
Hello I am calling find_library in a loop, using the same variable for HINTS. This variable (lib_dirs) is set using a script, and when I simply print it using message(), I obtain this output: message(${lib_dirs})

Re: [CMake] Creating a list of link directories from a variable

2016-04-01 Thread Salazar De Troya, Miguel
tiate between those cases. HS Am 1. April 2016 18:25:46 MESZ, schrieb "Salazar De Troya, Miguel" <salazardet...@llnl.gov<mailto:salazardet...@llnl.gov>>: Hello Thanks for your response. Is there automatic way to know which libraries my executable will need and which one

Re: [CMake] Creating a list of link directories from a variable

2016-04-01 Thread Salazar De Troya, Miguel
ely don't need to link them. If you have no missing symbols when linking, you can avoid overlinking you program. If this is a static library, you have a lot more work. For each library without -l, use find_library() and use the library dirs as hints. Do NOT use link_directories(). HS Am 1.

[CMake] Creating a list of link directories from a variable

2016-03-31 Thread Salazar De Troya, Miguel
Hello I am trying to compile a program with a library that provides a bash script to generate the dependencies, libraries and the link directories for the Makefile. I want to generate a CMakeLists.txt that can handle these dependencies from that library. I have been able to come up with regexp