Hello,

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


On Thu, Dec 5, 2013 at 7:54 PM, Tom Browder <tom.brow...@gmail.com> wrote:

> On Thu, Dec 5, 2013 at 12:38 PM, J Decker <d3c...@gmail.com> wrote:
> > then maybe just stripping the names, and/or adding the
> > CMAKE_CURRENT_SOURCE_DIR for each one as appropriate
>
> No, I still need choice, so, e.g., I'm using these lines in each
> CMakeLists.txt (modified as necessary, of course; and it works so
> far):
>
> # choose to use C++ compiler on all files
> if(ENABLE_ALL_CXX_COMPILE)
>   set_source_files_properties(${LIBRT_SOURCES} PROPERTIES LANGUAGE CXX)
> endif()
>
> -Tom
> --
>
> 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://www.cmake.org/mailman/listinfo/cmake
>



-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
--

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to