From 4e43207fd867187ecfcaaaf76ef461486b3d1eba Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Mon, 27 Aug 2012 12:19:27 -0400 Subject: [PATCH] Restructure IO directory to better match convention set by BPTC Encoder --- IO/CMakeLists.txt | 17 +++++++++-------- IO/{ => config}/ImageLoader.h.in | 0 IO/{ => include}/ImageFile.h | 0 IO/{ => src}/ImageFile.cpp | 0 IO/{ => src}/ImageLoaderPNG.cpp | 0 IO/{ => src}/ImageLoaderPNG.h | 0 6 files changed, 9 insertions(+), 8 deletions(-) rename IO/{ => config}/ImageLoader.h.in (100%) rename IO/{ => include}/ImageFile.h (100%) rename IO/{ => src}/ImageFile.cpp (100%) rename IO/{ => src}/ImageLoaderPNG.cpp (100%) rename IO/{ => src}/ImageLoaderPNG.h (100%) diff --git a/IO/CMakeLists.txt b/IO/CMakeLists.txt index 89ced9d..38ac753 100644 --- a/IO/CMakeLists.txt +++ b/IO/CMakeLists.txt @@ -1,11 +1,11 @@ SET( SOURCES - ImageFile.cpp + "src/ImageFile.cpp" ) SET( HEADERS - ImageLoader.h - ImageFile.h + "config/ImageLoader.h.in" + "include/ImageFile.h" ) FIND_PACKAGE( PNG ) @@ -13,16 +13,17 @@ IF( PNG_FOUND ) INCLUDE_DIRECTORIES( ${PNG_INCLUDE_DIR} ) TARGET_LINK_LIBRARIES( ${PNG_LIBRARY} ) - SET( SOURCES ${SOURCES} ImageLoaderPNG.cpp ) - SET( HEADERS ${HEADERS} ImageLoaderPNG.h ) + SET( SOURCES ${SOURCES} "src/ImageLoaderPNG.cpp" ) + SET( HEADERS ${HEADERS} "src/ImageLoaderPNG.h" ) ENDIF() CONFIGURE_FILE( - "ImageLoader.h.in" - "ImageLoader.h" + "config/ImageLoader.h.in" + "include/ImageLoader.h" ) -INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/IO ) +INCLUDE_DIRECTORIES( ${TexC_BINARY_DIR}/IO/include ) +INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/IO/include ) ADD_LIBRARY(TexCompIO ${SOURCES} diff --git a/IO/ImageLoader.h.in b/IO/config/ImageLoader.h.in similarity index 100% rename from IO/ImageLoader.h.in rename to IO/config/ImageLoader.h.in diff --git a/IO/ImageFile.h b/IO/include/ImageFile.h similarity index 100% rename from IO/ImageFile.h rename to IO/include/ImageFile.h diff --git a/IO/ImageFile.cpp b/IO/src/ImageFile.cpp similarity index 100% rename from IO/ImageFile.cpp rename to IO/src/ImageFile.cpp diff --git a/IO/ImageLoaderPNG.cpp b/IO/src/ImageLoaderPNG.cpp similarity index 100% rename from IO/ImageLoaderPNG.cpp rename to IO/src/ImageLoaderPNG.cpp diff --git a/IO/ImageLoaderPNG.h b/IO/src/ImageLoaderPNG.h similarity index 100% rename from IO/ImageLoaderPNG.h rename to IO/src/ImageLoaderPNG.h