From 781defb7076ddfddf723ca08cd0a518b6657b64f Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 16 Apr 2013 01:58:29 -0500 Subject: [PATCH] Move extras header files out of extras so when users copy modules out they dont need the headers too --- modules/CMakeLists.txt | 1 + modules/commands/cs_fantasy_stats.cpp | 2 +- modules/commands/cs_fantasy_top.cpp | 2 +- modules/database/db_sql.cpp | 2 +- modules/database/db_sql_live.cpp | 2 +- modules/{extra => }/httpd.h | 0 modules/{extra => }/ldap.h | 0 modules/{extra => }/sql.h | 0 modules/{extra => }/ssl.h | 0 modules/{extra => }/xmlrpc.h | 0 10 files changed, 5 insertions(+), 4 deletions(-) rename modules/{extra => }/httpd.h (100%) rename modules/{extra => }/ldap.h (100%) rename modules/{extra => }/sql.h (100%) rename modules/{extra => }/ssl.h (100%) rename modules/{extra => }/xmlrpc.h (100%) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index bce14a6ff..928466e41 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -159,5 +159,6 @@ function(build_subdir) endif(HAS_FUNCTION) endfunction(build_subdir) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) build_modules(${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/modules/commands/cs_fantasy_stats.cpp b/modules/commands/cs_fantasy_stats.cpp index b1b878c63..df24710a0 100644 --- a/modules/commands/cs_fantasy_stats.cpp +++ b/modules/commands/cs_fantasy_stats.cpp @@ -12,7 +12,7 @@ /*************************************************************************/ #include "module.h" -#include "../extra/sql.h" +#include "sql.h" class MySQLInterface : public SQL::Interface { diff --git a/modules/commands/cs_fantasy_top.cpp b/modules/commands/cs_fantasy_top.cpp index 2f445028b..9baceeda3 100644 --- a/modules/commands/cs_fantasy_top.cpp +++ b/modules/commands/cs_fantasy_top.cpp @@ -12,7 +12,7 @@ /*************************************************************************/ #include "module.h" -#include "../extra/sql.h" +#include "sql.h" class MySQLInterface : public SQL::Interface { diff --git a/modules/database/db_sql.cpp b/modules/database/db_sql.cpp index 4025fec69..894037026 100644 --- a/modules/database/db_sql.cpp +++ b/modules/database/db_sql.cpp @@ -9,7 +9,7 @@ */ #include "module.h" -#include "../extra/sql.h" +#include "sql.h" using namespace SQL; diff --git a/modules/database/db_sql_live.cpp b/modules/database/db_sql_live.cpp index a26b08cf7..239c543c2 100644 --- a/modules/database/db_sql_live.cpp +++ b/modules/database/db_sql_live.cpp @@ -1,5 +1,5 @@ #include "module.h" -#include "../extra/sql.h" +#include "sql.h" #include "../commands/os_session.h" using namespace SQL; diff --git a/modules/extra/httpd.h b/modules/httpd.h similarity index 100% rename from modules/extra/httpd.h rename to modules/httpd.h diff --git a/modules/extra/ldap.h b/modules/ldap.h similarity index 100% rename from modules/extra/ldap.h rename to modules/ldap.h diff --git a/modules/extra/sql.h b/modules/sql.h similarity index 100% rename from modules/extra/sql.h rename to modules/sql.h diff --git a/modules/extra/ssl.h b/modules/ssl.h similarity index 100% rename from modules/extra/ssl.h rename to modules/ssl.h diff --git a/modules/extra/xmlrpc.h b/modules/xmlrpc.h similarity index 100% rename from modules/extra/xmlrpc.h rename to modules/xmlrpc.h