Fixing platforms specific file issue

This commit is contained in:
Brad Davis 2014-07-09 11:00:20 -07:00
parent 8de9c2c20b
commit a41a3f63d2

View File

@ -1,5 +1,31 @@
project(CommonSrc)
file(GLOB_RECURSE SOURCE_FILES *.h *.cpp)
file(GLOB SOURCE_FILES
Util/*.h Util/*.cpp
Platform/Platform*
Platform/Gamepad*
Render/Render_Device*
Render/Render_Font*
Render/Render_Load*
Render/Render_Xml*
Render/Render_GL_Device*
)
add_library (CommonSrc STATIC ${SOURCE_FILES})
if(WIN32)
file(GLOB PLATFORM_SOURCE_FILES
Platform/Win32*
Render/Render_GL_Win32*
Render/Render_D3D*
)
elseif(APPLE)
file(GLOB PLATFORM_SOURCE_FILES
Platform/OSX*
)
else()
file(GLOB PLATFORM_SOURCE_FILES
Platform/Linux*
)
endif()
add_library (CommonSrc STATIC ${SOURCE_FILES} ${PLATFORM_SOURCE_FILES})