On Fri, Nov 20, 2015 at 10:46 AM, Nils Gladitz <[email protected]> wrote: > On 11/20/2015 04:43 PM, Marcus D. Hanwell wrote: >> >> I would like to see these files listed in Qt Creator (or insert your >> IDE of choice here). Is there anyway to do this, knowing that these >> files are not going to be built for a target (or compiled in any way). >> Any trick I am missing to make this work? When I include a .cmake file >> I see it is added, so I feel like there is some plumbing already in >> place to feed through these source files that are not built by >> targets. > > > If they are related to an existing build target > (add_executable()/add_library()) you can list them there with your regular > sources. > Otherwise e.g. add_custom_target(my_custom_target SOURCES foo.py bar.json > ...) should work. > Thanks, the add_custom_target works great. I hadn't thought of trying that, glad the answer was so simple.
Marcus -- 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-developers
