xo-object: initial implementation [wip]
This commit is contained in:
commit
d830632aea
16 changed files with 652 additions and 0 deletions
1
example/CMakeLists.txt
Normal file
1
example/CMakeLists.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_subdirectory(ex1)
|
||||
12
example/ex1/CMakeLists.txt
Normal file
12
example/ex1/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# xo-object/example/ex1/CMakeLists.txt
|
||||
|
||||
set(SELF_EXE xo_object_ex1)
|
||||
set(SELF_SRCS ex1.cpp)
|
||||
|
||||
if (XO_ENABLE_EXAMPLES)
|
||||
xo_add_executable(${SELF_EXE} ${SELF_SRCS})
|
||||
xo_self_headeronly_dependency(${SELF_EXE} xo_reflect)
|
||||
xo_dependency(${SELF_EXE} xo_flatstring)
|
||||
endif()
|
||||
|
||||
# end CMakeLists.txt
|
||||
14
example/ex1/ex1.cpp
Normal file
14
example/ex1/ex1.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* @file ex1.cpp */
|
||||
|
||||
#include "xo/object/object.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int
|
||||
main() {
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
cout << "hello, world!" << endl;
|
||||
}
|
||||
|
||||
/* end ex1.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue