Put all thirdparty code into a separate subdirectory.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 30 Jun 2011 12:28:42 +0000 (13:28 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 30 Jun 2011 12:28:42 +0000 (13:28 +0100)
63 files changed:
CMakeLists.txt
thirdparty/glext/glext.h [moved from glext/glext.h with 100% similarity]
thirdparty/glext/glxext.h [moved from glext/glxext.h with 100% similarity]
thirdparty/glext/wglext.h [moved from glext/wglext.h with 100% similarity]
thirdparty/libpng/ANNOUNCE [moved from libpng/ANNOUNCE with 100% similarity]
thirdparty/libpng/CHANGES [moved from libpng/CHANGES with 100% similarity]
thirdparty/libpng/CMakeLists.txt [moved from libpng/CMakeLists.txt with 100% similarity]
thirdparty/libpng/LICENSE [moved from libpng/LICENSE with 100% similarity]
thirdparty/libpng/README [moved from libpng/README with 100% similarity]
thirdparty/libpng/TODO [moved from libpng/TODO with 100% similarity]
thirdparty/libpng/libpng.txt [moved from libpng/libpng.txt with 100% similarity]
thirdparty/libpng/png.c [moved from libpng/png.c with 100% similarity]
thirdparty/libpng/png.h [moved from libpng/png.h with 100% similarity]
thirdparty/libpng/pngconf.h [moved from libpng/pngconf.h with 100% similarity]
thirdparty/libpng/pngdebug.h [moved from libpng/pngdebug.h with 100% similarity]
thirdparty/libpng/pngerror.c [moved from libpng/pngerror.c with 100% similarity]
thirdparty/libpng/pngget.c [moved from libpng/pngget.c with 100% similarity]
thirdparty/libpng/pnginfo.h [moved from libpng/pnginfo.h with 100% similarity]
thirdparty/libpng/pnglibconf.h [moved from libpng/pnglibconf.h with 100% similarity]
thirdparty/libpng/pngmem.c [moved from libpng/pngmem.c with 100% similarity]
thirdparty/libpng/pngpread.c [moved from libpng/pngpread.c with 100% similarity]
thirdparty/libpng/pngpriv.h [moved from libpng/pngpriv.h with 100% similarity]
thirdparty/libpng/pngread.c [moved from libpng/pngread.c with 100% similarity]
thirdparty/libpng/pngrio.c [moved from libpng/pngrio.c with 100% similarity]
thirdparty/libpng/pngrtran.c [moved from libpng/pngrtran.c with 100% similarity]
thirdparty/libpng/pngrutil.c [moved from libpng/pngrutil.c with 100% similarity]
thirdparty/libpng/pngset.c [moved from libpng/pngset.c with 100% similarity]
thirdparty/libpng/pngstruct.h [moved from libpng/pngstruct.h with 100% similarity]
thirdparty/libpng/pngtrans.c [moved from libpng/pngtrans.c with 100% similarity]
thirdparty/libpng/pngwio.c [moved from libpng/pngwio.c with 100% similarity]
thirdparty/libpng/pngwrite.c [moved from libpng/pngwrite.c with 100% similarity]
thirdparty/libpng/pngwtran.c [moved from libpng/pngwtran.c with 100% similarity]
thirdparty/libpng/pngwutil.c [moved from libpng/pngwutil.c with 100% similarity]
thirdparty/msvc/inttypes.h [moved from msvc/inttypes.h with 100% similarity]
thirdparty/msvc/stdbool.h [moved from msvc/stdbool.h with 100% similarity]
thirdparty/msvc/stdint.h [moved from msvc/stdint.h with 100% similarity]
thirdparty/zlib/CMakeLists.txt [moved from zlib/CMakeLists.txt with 100% similarity]
thirdparty/zlib/ChangeLog [moved from zlib/ChangeLog with 100% similarity]
thirdparty/zlib/README [moved from zlib/README with 100% similarity]
thirdparty/zlib/adler32.c [moved from zlib/adler32.c with 100% similarity]
thirdparty/zlib/compress.c [moved from zlib/compress.c with 100% similarity]
thirdparty/zlib/crc32.c [moved from zlib/crc32.c with 100% similarity]
thirdparty/zlib/crc32.h [moved from zlib/crc32.h with 100% similarity]
thirdparty/zlib/deflate.c [moved from zlib/deflate.c with 100% similarity]
thirdparty/zlib/deflate.h [moved from zlib/deflate.h with 100% similarity]
thirdparty/zlib/example.c [moved from zlib/example.c with 100% similarity]
thirdparty/zlib/gzio.c [moved from zlib/gzio.c with 100% similarity]
thirdparty/zlib/infback.c [moved from zlib/infback.c with 100% similarity]
thirdparty/zlib/inffast.c [moved from zlib/inffast.c with 100% similarity]
thirdparty/zlib/inffast.h [moved from zlib/inffast.h with 100% similarity]
thirdparty/zlib/inffixed.h [moved from zlib/inffixed.h with 100% similarity]
thirdparty/zlib/inflate.c [moved from zlib/inflate.c with 100% similarity]
thirdparty/zlib/inflate.h [moved from zlib/inflate.h with 100% similarity]
thirdparty/zlib/inftrees.c [moved from zlib/inftrees.c with 100% similarity]
thirdparty/zlib/inftrees.h [moved from zlib/inftrees.h with 100% similarity]
thirdparty/zlib/minigzip.c [moved from zlib/minigzip.c with 100% similarity]
thirdparty/zlib/trees.c [moved from zlib/trees.c with 100% similarity]
thirdparty/zlib/trees.h [moved from zlib/trees.h with 100% similarity]
thirdparty/zlib/uncompr.c [moved from zlib/uncompr.c with 100% similarity]
thirdparty/zlib/zconf.h [moved from zlib/zconf.h with 100% similarity]
thirdparty/zlib/zlib.h [moved from zlib/zlib.h with 100% similarity]
thirdparty/zlib/zutil.c [moved from zlib/zutil.c with 100% similarity]
thirdparty/zlib/zutil.h [moved from zlib/zutil.h with 100% similarity]

index f388991..55b530f 100755 (executable)
@@ -65,7 +65,7 @@ endif (WIN32)
 
 if (MSVC)
     # C99 includes for msvc
-    include_directories (msvc)
+    include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/msvc)
 
     # Enable math constants defines
     add_definitions (-D_USE_MATH_DEFINES)
@@ -107,8 +107,6 @@ endif ()
 # which subdirectory they are declared
 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
 
-include_directories (${CMAKE_CURRENT_SOURCE_DIR})
-
 
 ##############################################################################
 # Bundled dependencies
@@ -118,22 +116,25 @@ include_directories (${CMAKE_CURRENT_SOURCE_DIR})
 # - on unices to prevent symbol collisions when tracing applications that link
 # against other versions of these libraries
 
-set (ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/zlib)
+set (ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/zlib)
 set (ZLIB_LIBRARIES z_bundled)
-add_subdirectory (zlib EXCLUDE_FROM_ALL)
+add_subdirectory (thirdparty/zlib EXCLUDE_FROM_ALL)
 
 include_directories (${ZLIB_INCLUDE_DIRS})
 link_libraries (${ZLIB_LIBRARIES})
 
-set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libpng)
+set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libpng)
 set (PNG_DEFINITIONS "")
 set (PNG_LIBRARIES png_bundled)
 
-add_subdirectory (libpng EXCLUDE_FROM_ALL)
+add_subdirectory (thirdparty/libpng EXCLUDE_FROM_ALL)
 include_directories (${PNG_INCLUDE_DIR})
 add_definitions (${PNG_DEFINITIONS})
 link_libraries (${PNG_LIBRARIES})
 
+# For glext headers
+include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
+
 
 ##############################################################################
 # Common libraries / utilities
similarity index 100%
rename from glext/glext.h
rename to thirdparty/glext/glext.h
similarity index 100%
rename from glext/glxext.h
rename to thirdparty/glext/glxext.h
similarity index 100%
rename from glext/wglext.h
rename to thirdparty/glext/wglext.h
similarity index 100%
rename from libpng/ANNOUNCE
rename to thirdparty/libpng/ANNOUNCE
similarity index 100%
rename from libpng/CHANGES
rename to thirdparty/libpng/CHANGES
similarity index 100%
rename from libpng/LICENSE
rename to thirdparty/libpng/LICENSE
similarity index 100%
rename from libpng/README
rename to thirdparty/libpng/README
similarity index 100%
rename from libpng/TODO
rename to thirdparty/libpng/TODO
similarity index 100%
rename from libpng/png.c
rename to thirdparty/libpng/png.c
similarity index 100%
rename from libpng/png.h
rename to thirdparty/libpng/png.h
similarity index 100%
rename from libpng/pngconf.h
rename to thirdparty/libpng/pngconf.h
similarity index 100%
rename from libpng/pngget.c
rename to thirdparty/libpng/pngget.c
similarity index 100%
rename from libpng/pnginfo.h
rename to thirdparty/libpng/pnginfo.h
similarity index 100%
rename from libpng/pngmem.c
rename to thirdparty/libpng/pngmem.c
similarity index 100%
rename from libpng/pngpriv.h
rename to thirdparty/libpng/pngpriv.h
similarity index 100%
rename from libpng/pngread.c
rename to thirdparty/libpng/pngread.c
similarity index 100%
rename from libpng/pngrio.c
rename to thirdparty/libpng/pngrio.c
similarity index 100%
rename from libpng/pngset.c
rename to thirdparty/libpng/pngset.c
similarity index 100%
rename from libpng/pngwio.c
rename to thirdparty/libpng/pngwio.c
similarity index 100%
rename from msvc/inttypes.h
rename to thirdparty/msvc/inttypes.h
similarity index 100%
rename from msvc/stdbool.h
rename to thirdparty/msvc/stdbool.h
similarity index 100%
rename from msvc/stdint.h
rename to thirdparty/msvc/stdint.h
similarity index 100%
rename from zlib/ChangeLog
rename to thirdparty/zlib/ChangeLog
similarity index 100%
rename from zlib/README
rename to thirdparty/zlib/README
similarity index 100%
rename from zlib/adler32.c
rename to thirdparty/zlib/adler32.c
similarity index 100%
rename from zlib/compress.c
rename to thirdparty/zlib/compress.c
similarity index 100%
rename from zlib/crc32.c
rename to thirdparty/zlib/crc32.c
similarity index 100%
rename from zlib/crc32.h
rename to thirdparty/zlib/crc32.h
similarity index 100%
rename from zlib/deflate.c
rename to thirdparty/zlib/deflate.c
similarity index 100%
rename from zlib/deflate.h
rename to thirdparty/zlib/deflate.h
similarity index 100%
rename from zlib/example.c
rename to thirdparty/zlib/example.c
similarity index 100%
rename from zlib/gzio.c
rename to thirdparty/zlib/gzio.c
similarity index 100%
rename from zlib/infback.c
rename to thirdparty/zlib/infback.c
similarity index 100%
rename from zlib/inffast.c
rename to thirdparty/zlib/inffast.c
similarity index 100%
rename from zlib/inffast.h
rename to thirdparty/zlib/inffast.h
similarity index 100%
rename from zlib/inffixed.h
rename to thirdparty/zlib/inffixed.h
similarity index 100%
rename from zlib/inflate.c
rename to thirdparty/zlib/inflate.c
similarity index 100%
rename from zlib/inflate.h
rename to thirdparty/zlib/inflate.h
similarity index 100%
rename from zlib/inftrees.c
rename to thirdparty/zlib/inftrees.c
similarity index 100%
rename from zlib/inftrees.h
rename to thirdparty/zlib/inftrees.h
similarity index 100%
rename from zlib/minigzip.c
rename to thirdparty/zlib/minigzip.c
similarity index 100%
rename from zlib/trees.c
rename to thirdparty/zlib/trees.c
similarity index 100%
rename from zlib/trees.h
rename to thirdparty/zlib/trees.h
similarity index 100%
rename from zlib/uncompr.c
rename to thirdparty/zlib/uncompr.c
similarity index 100%
rename from zlib/zconf.h
rename to thirdparty/zlib/zconf.h
similarity index 100%
rename from zlib/zlib.h
rename to thirdparty/zlib/zlib.h
similarity index 100%
rename from zlib/zutil.c
rename to thirdparty/zlib/zutil.c
similarity index 100%
rename from zlib/zutil.h
rename to thirdparty/zlib/zutil.h