From d4bf0b6e99c700d5cdbd67a3cc0fcd7325ea5e9f Mon Sep 17 00:00:00 2001 From: jachoo Date: Sun, 4 Dec 2011 14:29:30 +0100 Subject: [PATCH] Visual Studio - headers added to CMakeLists.txt --- src/CMakeLists.txt | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2088c8b..8a6f4a7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -187,6 +187,76 @@ set(minetestserver_SRCS servermain.cpp ) +# Want to see header files in solution explorer +if(MSVC) + set(common_HDRS + log.h + content_sao.h + mapgen.h + content_nodemeta.h + content_mapnode.h + auth.h + collision.h + nodemetadata.h + serverobject.h + noise.h + mineral.h + porting.h + materials.h + defaultsettings.h + mapnode.h + voxel.h + inventory.h + debug.h + serialization.h + light.h + filesys.h + connection.h + environment.h + server.h + servercommand.h + socket.h + mapblock.h + mapsector.h + map.h + player.h + utility.h + test.h + sha1.h + base64.h + ban.h + ) + set(minetest_HDRS + ${common_HDRS} + content_mapblock.h + content_cao.h + mapblock_mesh.h + farmesh.h + keycode.h + camera.h + clouds.h + clientobject.h + guiMainMenu.h + guiKeyChangeMenu.h + guiMessageMenu.h + guiTextInputMenu.h + guiInventoryMenu.h + guiPauseMenu.h + guiPasswordChange.h + guiDeathScreen.h + client.h + tile.h + game.h + main.h + ) + set(minetestserver_HDRS + ${common_HDRS} + ) + set(common_SRCS ${common_SRCS} ${common_HDRS}) + set(minetest_SRCS ${minetest_SRCS} ${minetest_HDRS}) + set(minetestserver_SRCS ${minetestserver_SRCS} ${minetestserver_HDRS}) +endif() + include_directories( ${PROJECT_BINARY_DIR} ${IRRLICHT_INCLUDE_DIR}