# Define target name and output directory
init_target(DebugStatsModule OUTPUT plugins)

GetEntityComponents()

MocFolder()

# Define source files
file(GLOB CPP_FILES *.cpp)
file(GLOB H_FILES *.h)
file(GLOB XML_FILES *.xml)
file(GLOB MOC_FILES DebugStats.h TimeProfilerWindow.h)
set(SOURCE_FILES ${CPP_FILES} ${H_FILES})

# Qt4 Wrap
QT4_WRAP_CPP(MOC_SRCS ${H_FILES})
QT4_WRAP_UI(UI_SRCS ${UI_FILES})
QT4_ADD_RESOURCES(RESOURCE_SRCS ${RESOURCE_FILES})

add_definitions(-DDEBUGSTATS_MODULE_EXPORTS)

use_package_bullet()
UseTundraCore()
use_core_modules(TundraCore Math OgreRenderingModule AssetModule EnvironmentModule PhysicsModule)
use_entity_components(EC_Script)

build_library (${TARGET_NAME} SHARED ${SOURCE_FILES} ${MOC_SRCS})

link_package(QT4)
link_package_knet()
link_ogre()
link_modules(TundraCore OgreRenderingModule EnvironmentModule AssetModule PhysicsModule)
link_entity_components(EC_Script)

SetupCompileFlagsWithPCH()

if (MSVC)
    target_link_libraries (${TARGET_NAME} pdh.lib ws2_32.lib)
endif (MSVC)

final_target()

# Define target name and output directory
init_target(DebugStatsModule OUTPUT plugins)

GetEntityComponents()

MocFolder()

# Define source files
file(GLOB CPP_FILES *.cpp)
file(GLOB H_FILES *.h)
file(GLOB MOC_FILES DebugStats.h TimeProfilerWindow.h)
set(SOURCE_FILES ${CPP_FILES} ${H_FILES})

# Qt4 Wrap
QT4_WRAP_CPP(MOC_SRCS ${MOC_FILES})
QT4_ADD_RESOURCES(RESOURCE_SRCS ${RESOURCE_FILES})

add_definitions(-DDEBUGSTATS_MODULE_EXPORTS)

use_package_bullet()
UseTundraCore()
use_core_modules(TundraCore Math OgreRenderingModule AssetModule EnvironmentModule PhysicsModule)
use_entity_components(EC_Script)

build_library(${TARGET_NAME} SHARED ${SOURCE_FILES} ${MOC_SRCS})

link_package(QT4)
link_package_knet()
link_ogre()
link_modules(TundraCore OgreRenderingModule EnvironmentModule AssetModule PhysicsModule)
link_entity_components(EC_Script)

SetupCompileFlagsWithPCH()

if (MSVC)
    target_link_libraries (${TARGET_NAME} pdh.lib ws2_32.lib)
endif (MSVC)

final_target()

Fix "Warning: No relevant classes found. No output generated." warnings coming from DebugStatsModule.
Fix "Warning: No relevant classes found. No output generated." warnings coming from DebugStatsModule.
