Re: [CMake] How to get find_package(ZLIB) to set ZLIB_LIBRARIES to 32-bit version ?

2014-06-24 Thread Rolf Eike Beer
Am Dienstag, 24. Juni 2014, 22:32:22 schrieb Glenn Coombs: > This seems to be the recommended way to link against the zlib library: > > find_package(ZLIB)if (ZLIB_FOUND) > include_directories(${ZLIB_INCLUDE_DIRS}) > target_link_libraries(MyProg ${ZLIB_LIBRARIES}) > endif() > > When I run

[CMake] How to get find_package(ZLIB) to set ZLIB_LIBRARIES to 32-bit version ?

2014-06-24 Thread Glenn Coombs
This seems to be the recommended way to link against the zlib library: find_package(ZLIB)if (ZLIB_FOUND) include_directories(${ZLIB_INCLUDE_DIRS}) target_link_libraries(MyProg ${ZLIB_LIBRARIES}) endif() When I run this on linux I see that ZLIB_LIBRARIES has the value /usr/lib64/libz.so.

Re: [CMake] How to know the location of build directory

2014-06-24 Thread Haster
Hi Angeliki, CMAKE_CURRENT_BINARY_DIR in my case is /import/home/yury.alioshinov/linux_i686/lua_libs/Source/__build__/engine/ but object files are located in /import/home/yury.alioshinov/linux_i686/lua_libs/Source/__build__/engine/CMakeFiles/lua_engine.dir Now I use construction: "${CMAKE_CURRE

Re: [CMake] how to use the cmake functions get_prerequisites and get_filename_component for target dependency installation?

2014-06-24 Thread David Cole via CMake
Answered on stack overflow. Copied/pasted here for mailing list archives: The references that get_prerequisites returns are not absolute full path references, and they are also not resolve-able to absolute references via a simple get_filename_component call. (On Mac, they may contain @executa

Re: [CMake] How to know the location of build directory

2014-06-24 Thread Angeliki Chrysochou
Hi Haster, Maybe CMAKE_CURRENT_BINARY_DIR could help you? Look at its description here: http://www.cmake.org/Wiki/CMake_Useful_Variables Cheers! Angeliki On Tue, Jun 24, 2014 at 1:51 PM, Haster wrote: > Hi folks, > I have such problem: > > I build different C/C++ programs with gcc and use -f

[CMake] How to know the location of build directory

2014-06-24 Thread Haster
Hi folks, I have such problem: I build different C/C++ programs with gcc and use -fprofile-arcs -ftest-coverage options to generate .gcno files (to use them with gcov) So this files are created in directory there object files are created and I have to include them to distib. But I can't corre

[CMake] In-process COM server with type library - canonical example?

2014-06-24 Thread james
Hi Is there a canonical example of using CMake to drive IDL compilation, and resource compiling and the conversion to object, for an in-process COM server? Ideally, I'd like to be able to use the free equivalents and gcc as an alternative and switch between them (as well as the Windows SDK t

[CMake] how to use the cmake functions get_prerequisites and get_filename_component for target dependency installation?

2014-06-24 Thread Stefan Dänzer
Dear list members, we have set up a cmake project with external shared library dependencies. We want to package the binaries and dependencies of our project using CPack. However we are getting different results on windows and linux systems when trying to find dependencies of our targets. We had a

[CMake] cmake_cxx_link_executable issue

2014-06-24 Thread Piotr Bialek
Dear Users, I'm trying to cross compile with clang. I set cmake_compiler, cmake_linker, etc. During the linking CXX executable all flags, libs, files, etc. are getting from somehow created file ./Main/CMakeFiles/Build.dir/link.txt. The problem is, that when I change linker by setting CMAKE_