From f4685cc9909fb47bf60b3bab98f0beb7888e1d6b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 17 Apr 2011 23:32:08 -0400 Subject: [PATCH] MaxPlasmaLights works better when it has the resources file compiled in... Just sayin' --- Sources/Tools/MaxPlasmaLights/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Sources/Tools/MaxPlasmaLights/CMakeLists.txt b/Sources/Tools/MaxPlasmaLights/CMakeLists.txt index f3aa7e32..55588662 100644 --- a/Sources/Tools/MaxPlasmaLights/CMakeLists.txt +++ b/Sources/Tools/MaxPlasmaLights/CMakeLists.txt @@ -18,10 +18,15 @@ set(MaxPlasmaLights_HEADERS plRTProjDirLightClassDesc.h plRTProjDirLightPBDec.h prim.h - resource.h target.h ) +set(MaxPlasmaLights_RESOURCES + plRTLights.rc + resource.h +) + + set(MaxPlasmaLights_SOURCES DLLEntry.cpp plRealTimeLightBase.cpp @@ -29,7 +34,7 @@ set(MaxPlasmaLights_SOURCES plRTProjDirLight.cpp ) -add_library(MaxPlasmaLights SHARED ${MaxPlasmaLights_HEADERS} ${MaxPlasmaLights_SOURCES}) +add_library(MaxPlasmaLights SHARED ${MaxPlasmaLights_HEADERS} ${MaxPlasmaLights_RESOURCES} ${MaxPlasmaLights_SOURCES}) set_target_properties(MaxPlasmaLights PROPERTIES SUFFIX ".dlo") @@ -134,4 +139,5 @@ if (WIN32) endif(WIN32) source_group("Header Files" FILES ${MaxPlasmaLights_HEADERS}) +source_group("Resource Files" FILES ${MaxPlasmaLights_RESOURCES}) source_group("Source Files" FILES ${MaxPlasmaLights_SOURCES})