Hi all,<br><br>Just a little question and getting feedback for a feature request ;-)<br><br>At the moment (CMake 2.2.3) the Find*.cmake modules are looking into a bunch of different directories to support different OSes, and those directories are also different for each package...
<br><br>To install libraries to be correctly detected by Cmake on Windows at the moment I am creating many different environement variables depending on which one the modules look for.<br>usually one for the include, one for the lib, and I put the folder with the dll in my PATH.
<br>Doing this is not easy when you have multiple projects with multiple dependencies to setup on different machines by different people...<br><br>To reduce the pain I can see two possibilities :<br><br>1) Few global CMake environment variables that can be setup by users to put their packages path in.
<br>and in all the differents Find*.cmake Modules we could have something like :<br><br>FIND_PATH(PACKAGE_INCLUDE_DIR Package.h<br>&nbsp; $ENV{CMAKE_PACKAGES_INCLUDE_PATH} )<br><br>FIND_LIBRARY(PACKAGE_LIBRARY <br>&nbsp;&nbsp;&nbsp; NAMES Package
<br>&nbsp;&nbsp;&nbsp; PATHS<br>&nbsp;&nbsp;&nbsp; $ENV{CMAKE_PACKAGES_LIB_PATH} )<br><br>which makes it easy for developers to setup their development environment. Even those who dont know cmake, and how it works...<br><br>2) Having an heirarchy of directory already setup somehow to put the packages in ^^. Inside this two possibilities:
<br>2.1) a structure like the DevPaks : bin, include, lib, etc. ( like the hierarchy on Unix)<br>2.2) a structure with each package in different directories and if possible a way to get them and their dependencies easily. (binary package or source package...)
<br><br>2.1) Doesnt seem suitable to me, because when you install multiple packages it s easy to mix them together... and btw it should be the job of the OS, not a specific application ( I am following unix-way here)<br>2.2
) sounds like a huge work... maybe a CPak later ;-)<br><br>So do you think it is possible in the future to implement 1) ?<br>Do you think it would be usefull ??<br>Does someone has another idea ???<br>