Hi,

On Sun, Jan 11, 2015 at 10:55 PM, Dario Oliveri <oliveridari...@gmail.com>
wrote:

> It is very simple for each of the files you want to include in the build
> (I use txt example so that you know it can work for arbitrary types):
>
> ---
> set_source_files_properties( comment.txt PROPERTIES HEADER_FILE_ONLY true)
> ---
> then you can include that file in the build to let it shows up in the IDE
> file
>
> ---
> #example when adding a static library (works the same also for executables)
> add_library( ${arg1} STATIC
>     ${sourcefiles}   #files you need to REALLY BUILD
>     comment.txt    #this file would be added, but not builded
>   )
> ---
>

Ah, that works. Its a little ugly in the CMake files but I guess I can live
with that. Ideally I was hoping to simply have a 'complete' list including
actual sources and sources for other platforms and hand that to a special
function - without passing the source-for-other-platform to the actual
target. Oh well, I have to stop dreaming :)

Andreas
-- 

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