Build System
- Added new src/commands and src/columns intermediate libs. - Began implementation of the first Command object. - Began implementation of the first Column object. - TDB2, Variant updates.
This commit is contained in:
13
src/columns/CMakeLists.txt
Normal file
13
src/columns/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
include_directories (${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_SOURCE_DIR}/src/commands
|
||||
${CMAKE_SOURCE_DIR}/src/columns
|
||||
${TASK_INCLUDE_DIRS})
|
||||
|
||||
set (columns_SRCS Column.cpp Column.h)
|
||||
|
||||
add_library (columns STATIC ${columns_SRCS})
|
||||
|
||||
set (CMAKE_BUILD_TYPE debug)
|
||||
set (CMAKE_C_FLAGS_DEBUG "-ggdb3")
|
||||
set (CMAKE_C_FLAGS_RELEASE "-O3")
|
||||
@@ -26,16 +26,19 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <iostream>
|
||||
#include <Context.h>
|
||||
#include <Column.h>
|
||||
|
||||
extern Context context;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
static Column* Column::factory (const std::string& name)
|
||||
Column* Column::factory (const std::string& name)
|
||||
{
|
||||
/*
|
||||
if (name == "description") return new ColumnDescription ();
|
||||
|
||||
throw std::string ("Unrecognized column type '") + name + "'";
|
||||
*/
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,11 +56,5 @@ private:
|
||||
sizing _sizing;
|
||||
};
|
||||
|
||||
class ColumnDescription : public Column
|
||||
{
|
||||
public:
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user