<div dir="ltr"><div><div><div>Hi David,<br><br></div>You can add to the search path CMake uses by appending to the CMAKE_MODULE_PATH variable.  In your case, you'll probably want to set it before the project command to make sure it's present for you're entire project.  For example:<br>


<br></div>In your project, you create CMake directory where you would place additional *.cmake files, such as your language files,or maybe even custom Find modules.  Then in your top level CMakeLists file, you would have:<br>


<br><span style="font-family:courier new,monospace">cmake_minimum_required(VERSION 2.8.12)<br>list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")<br>project(MyAwesomeProject)<br></span><br>Now anytime CMake searches for any sort of *.cmake file, it will also search the CMake folder in your source tree.<br>

</div><div><br></div><div class="gmail_extra">Hope that helps.<br clear="all"></div><div class="gmail_extra"><div><div dir="ltr">- Chuck<br></div></div>

<br><br><div class="gmail_quote">On Mon, Jul 21, 2014 at 7:32 PM, David Zemon <span dir="ltr"><<a href="mailto:david@zemon.name" target="_blank">david@zemon.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I am attempting to build an easy-to-use build system for an embedded system. This chip uses .dat, .spin, .cogc, and .ecogc files along with .S, .c, and .cpp. I've added the necessary language files to my project path which will enable cogc (I'll get to the other file types eventually) and they work great, but it requires manually linking or copying the files out of the project directory and into CMake's installation path. Is there some way to tell CMake that it should look for these files in a custom path?<br>



<br>
Thanks,<br>
David<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/cmake</a><br>
</blockquote></div><br></div></div>