Hi, is there a way to add an imported target to the IDE similar to the way eg executable targets are added?
In the following code the last line seems to have no effect, ie when opening the generated Visual Studio solution neither the helloWorld.cpp nor the folder "tests" is shown set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(target_name Hello) add_executable(${target_name} IMPORTED) set_property(TARGET ${target_name} PROPERTY IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/helloWorld.cpp") set_property(TARGET ${target_name} PROPERTY FOLDER "tests") Any idea how I can add this imported target to some folder of the IDE? Thanks, Ali ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------
-- 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: https://cmake.org/mailman/listinfo/cmake