Hello, 

I wonder how I should organize cmake files in my project. 
For the moment, I have organized my project like this: 
========================== 
project/ 
CMakeLists.txt 
cmake/ 
modules/ 
FindLibrary.cmake 
MyFunction.cmake 
src/ 
CMakeLists.txt 
========================== 
If I keep on organizing files like this, the "cmake" directory will only 
contain a subdirectory named "modules" and dedicated to auxiliary files like 
custom functions and scripts for the find_package function. 
Actually, it seems to be the case in the installation directory of cmake 
itself, where a subdirectory named "Modules" contains both functions and 
scripts for the find_package function. 

Does it make sense to separate functions from scripts for the find_package 
function? 
Is each script a module in CMake, whatever it contains? 
What are the different kinds of scripts/modules: functions, scripts for the 
find_package function, configuration files, what else? 

Thank you for your help! 

Cédric 

-- 

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

Reply via email to