<div dir="ltr">Hello,<div><br></div><div>If you have more than 200 CMakeLists.txt, IMHO you should create two macros to wrap add_executable/add_library: add_executable_maybe_cxx / add_library_maybe_cxx</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Dec 5, 2013 at 7:54 PM, Tom Browder <span dir="ltr"><<a href="mailto:tom.browder@gmail.com" target="_blank">tom.browder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Dec 5, 2013 at 12:38 PM, J Decker <<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>> wrote:<br>
> then maybe just stripping the names, and/or adding the<br>
> CMAKE_CURRENT_SOURCE_DIR for each one as appropriate<br>
<br>
No, I still need choice, so, e.g., I'm using these lines in each<br>
CMakeLists.txt (modified as necessary, of course; and it works so<br>
far):<br>
<br>
# choose to use C++ compiler on all files<br>
if(ENABLE_ALL_CXX_COMPILE)<br>
set_source_files_properties(${LIBRT_SOURCES} PROPERTIES LANGUAGE CXX)<br>
endif()<br>
<div class="HOEnZb"><div class="h5"><br>
-Tom<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/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/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/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/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Pau Garcia i Quiles<br><a href="http://www.elpauer.org">http://www.elpauer.org</a><br>(Due to my workload, I may need 10 days to answer)
</div>