From 5d54c881a12bf3b1816fb7858021711b9cfe5c99 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sat, 7 Feb 2015 06:52:47 +0100 Subject: [PATCH] Added custom target (which doesn't build anything) so that our header-only library still shows up in VisualStudio for browsing the files. --- library/PolyVoxCore/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/PolyVoxCore/CMakeLists.txt b/library/PolyVoxCore/CMakeLists.txt index 6e9b339a..79ddc63c 100644 --- a/library/PolyVoxCore/CMakeLists.txt +++ b/library/PolyVoxCore/CMakeLists.txt @@ -113,3 +113,8 @@ SOURCE_GROUP("Header Files" FILES ${CORE_INC_FILES}) #SOURCE_GROUP("Source Files\\Impl" FILES ${IMPL_SRC_FILES}) SOURCE_GROUP("Header Files\\Impl" FILES ${IMPL_INC_FILES}) + +# Although we don't build anything for PolyVox, we still add this custom target (which +# doesn't do anything) so that we can browse the source code from within Visual Studio. +ADD_CUSTOM_TARGET(PolyVoxCore SOURCES ${CORE_INC_FILES}) +SET_PROPERTY(TARGET PolyVoxCore PROPERTY FOLDER "Library")