Re: [CMake] CMake fails on linking.

2015-07-02 Thread Gonzalo Garramuno
On 02/07/15 10:49, Owen Alanzo Hogarth wrote: Hi guys I wrote up this post on stackoverflow can I get some help sorting out why this project isn't linking properly? https://stackoverflow.com/questions/31186399/cmake-linking-errors Best You are missing the link libraries (OpenGL and SDL).

[CMake] Setting environment variables on windows on install

2015-01-24 Thread Gonzalo Garramuno
I would like to set an environment variable in the NSIS installer, other than PATH during the install. Can someone show me how? -- 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

Re: [CMake] Out of Source CMakeLists

2015-01-20 Thread Gonzalo Garramuno
On 20/01/15 15:57, Ma O-Nigiri wrote: Is this possible? I tried fiddling with some of the path variables and it didn't pan out. I believe what you want is not possible. However, you can have: cmake/modules FindOpenEXR.cmake mytool CMakeLists.txt ( with add_subdirectory( src ) )

Re: [CMake] NSIS startup menu and icons

2015-01-12 Thread Gonzalo Garramuno
On 10/01/15 14:01, Gonzalo Garramuño wrote: I have created an NSIS section for my CMakeLists.txt and I am trying to pack and install my application (mrViewer). I managed to make it all work by flattening the destination, so that instead of ${mrViewerPackageName}/bin, it remains as bin only.

Re: [CMake] NSIS builder creating invalid exe

2015-01-10 Thread Gonzalo Garramuno
On 09/01/15 19:22, Bill Hoffman wrote: On 1/9/2015 12:43 PM, Gonzalo Garramuño wrote: I updated my CMakeLists.txt to create an NSIS installer under a Nmake Makefile. The packaging works without errors when run with 'nmake package'. However, the resulting exe file when run, returns: Bad file

Re: [CMake] Creating an installer using cpack

2015-01-09 Thread Gonzalo Garramuno
On 08/01/15 21:56, J Decker wrote: I don't think you should install libraries like that... things in binary would be build products, can you possibly just install the libs as normal INSTALL( Target ... LIBRARY DESTINATION lib ) The lib files are not built by cmake but are dependencies for my

[CMake] Creating an installer using cpack

2015-01-08 Thread Gonzalo Garramuno
I have a cmake file to build my project (mrViewer). The project has additional script files that are not mentioned in my cmake file. The project also has dependencies on c libraries installed elsewhere (/usr/local, etc). The tgz,deb and rpm files currently contain just the main executable