Temporary fix for libPNG

This commit is contained in:
Phillip Stephens 2015-11-22 14:43:59 -08:00
parent e5e98ccea1
commit c72b355c4c
2 changed files with 8 additions and 4 deletions

View File

@ -2,7 +2,7 @@ if(NOT WIN32 AND NOT APPLE)
find_library(PNG_LIB png) find_library(PNG_LIB png)
endif() endif()
if(WIN32 OR APPLE OR PNG_LIB STREQUAL PNG_LIB-NOTFOUND) #if(WIN32 OR APPLE OR PNG_LIB STREQUAL PNG_LIB-NOTFOUND)
message(STATUS "Using HECL's built-in libpng") message(STATUS "Using HECL's built-in libpng")
include_directories(${ZLIB_INCLUDE_DIR}) include_directories(${ZLIB_INCLUDE_DIR})
add_library(png add_library(png
@ -33,6 +33,6 @@ add_library(png
set(PNG_LIB png CACHE PATH "PNG library" FORCE) set(PNG_LIB png CACHE PATH "PNG library" FORCE)
set(LIBPNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "PNG include path" FORCE) set(LIBPNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "PNG include path" FORCE)
else() #else()
find_path(LIBPNG_INCLUDE_DIR png.h) #find_path(LIBPNG_INCLUDE_DIR png.h)
endif() #endif()

View File

@ -25,6 +25,10 @@ class FileStoreManager
public: public:
FileStoreManager(const SystemString& domain); FileStoreManager(const SystemString& domain);
const SystemString& getDomain() const {return m_domain;} const SystemString& getDomain() const {return m_domain;}
/**
* @brief Returns the full path to the file store, including domain
* @return Full path to store e.g /home/foo/.hecl/bar
*/
const SystemString& getStoreRoot() const {return m_storeRoot;} const SystemString& getStoreRoot() const {return m_storeRoot;}
}; };