[DOC] update
This commit is contained in:
parent
a36dbe86cd
commit
d68ea37403
@ -1,69 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
|
||||||
|
|
||||||
# Declare the project
|
|
||||||
project(exml)
|
|
||||||
|
|
||||||
##
|
|
||||||
## Include C++ X11 dependency ... (check correct flags)
|
|
||||||
##
|
|
||||||
include(CheckCXXCompilerFlag)
|
|
||||||
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
|
||||||
if(COMPILER_SUPPORTS_CXX11)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
||||||
else()
|
|
||||||
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
|
|
||||||
if(COMPILER_SUPPORTS_CXX0X)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
|
||||||
else()
|
|
||||||
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# set output path:
|
|
||||||
set(LIBRARY_OUTPUT_PATH lib/${CMAKE_BUILD_TYPE})
|
|
||||||
|
|
||||||
include_directories(.)
|
|
||||||
|
|
||||||
#Create src file list
|
|
||||||
set(src_files
|
|
||||||
exml/debug.cpp
|
|
||||||
exml/debug.h
|
|
||||||
exml/Attribute.cpp
|
|
||||||
exml/Attribute.h
|
|
||||||
exml/AttributeList.cpp
|
|
||||||
exml/AttributeList.h
|
|
||||||
exml/Comment.cpp
|
|
||||||
exml/Comment.h
|
|
||||||
exml/Declaration.cpp
|
|
||||||
exml/Declaration.h
|
|
||||||
exml/Document.cpp
|
|
||||||
exml/Document.h
|
|
||||||
exml/Element.cpp
|
|
||||||
exml/Element.h
|
|
||||||
exml/Node.cpp
|
|
||||||
exml/Node.h
|
|
||||||
exml/Text.cpp
|
|
||||||
exml/Text.h
|
|
||||||
)
|
|
||||||
|
|
||||||
add_definitions( -DDEBUG_LEVEL=3 )
|
|
||||||
add_definitions( -DDEBUG=1 )
|
|
||||||
if (APPLE)
|
|
||||||
add_definitions( -D__TARGET_OS__MacOs )
|
|
||||||
elseif (UNIX)
|
|
||||||
add_definitions( -D__TARGET_OS__Linux )
|
|
||||||
elseif (WIN32)
|
|
||||||
add_definitions( -D__TARGET_OS__Windows )
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
|
|
||||||
include_directories(${etk_SOURCE_DIR})
|
|
||||||
include_directories(${linearmath_SOURCE_DIR}/bullet/src/)
|
|
||||||
|
|
||||||
#Create a static Lib:
|
|
||||||
add_library(exml STATIC ${src_files} )
|
|
||||||
target_link_libraries(exml etk)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -76,5 +76,5 @@ Get all the data in an element in text mode:
|
|||||||
All example file {#exml_tutorial_read_all}
|
All example file {#exml_tutorial_read_all}
|
||||||
================
|
================
|
||||||
|
|
||||||
@snippet read.cpp exml_sample_read_all
|
@include read.cpp
|
||||||
|
|
||||||
|
@ -57,5 +57,5 @@ Then if you asign an element to an other, it is the same. You need to clone it i
|
|||||||
All example file {#exml_tutorial_write_all}
|
All example file {#exml_tutorial_write_all}
|
||||||
================
|
================
|
||||||
|
|
||||||
@snippet write.cpp exml_sample_write_all
|
@include write.cpp
|
||||||
|
|
||||||
|
@ -31,7 +31,10 @@ def create(target, module_name):
|
|||||||
'sample/read.cpp',
|
'sample/read.cpp',
|
||||||
'sample/write.cpp'
|
'sample/write.cpp'
|
||||||
])
|
])
|
||||||
my_module.add_depend(['exml', 'test-debug'])
|
my_module.add_depend([
|
||||||
|
'exml',
|
||||||
|
'test-debug'
|
||||||
|
])
|
||||||
my_module.copy_path('sample/read.xml')
|
my_module.copy_path('sample/read.xml')
|
||||||
return my_module
|
return my_module
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! [exml_sample_read_all]
|
|
||||||
#include <test-debug/debug.h>
|
#include <test-debug/debug.h>
|
||||||
//! [exml_sample_include]
|
//! [exml_sample_include]
|
||||||
#include <exml/exml.h>
|
#include <exml/exml.h>
|
||||||
@ -145,4 +144,3 @@ void appl::read() {
|
|||||||
readFromString1();
|
readFromString1();
|
||||||
readFull();
|
readFull();
|
||||||
}
|
}
|
||||||
//! [exml_sample_read_all]
|
|
@ -4,7 +4,6 @@
|
|||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//! [exml_sample_write_all]
|
|
||||||
#include <test-debug/debug.h>
|
#include <test-debug/debug.h>
|
||||||
#include <exml/exml.h>
|
#include <exml/exml.h>
|
||||||
#include "write.h"
|
#include "write.h"
|
||||||
@ -79,5 +78,4 @@ void appl::write() {
|
|||||||
writeToString();
|
writeToString();
|
||||||
writeAll();
|
writeAll();
|
||||||
}
|
}
|
||||||
//! [exml_sample_write_all]
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user