Skip to content

Commit a4fbcf9

Browse files
committed
Init
1 parent 03d59c3 commit a4fbcf9

26 files changed

+2615
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
wsjcpp-yaml
2+
tmp/*
3+
.wsjcpp-yaml-logs/*
4+
15
# Prerequisites
26
*.d
37

CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(wsjcpp-yaml)
4+
5+
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
6+
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp_SOURCE_DIR})
9+
10+
# Sources
11+
12+
# include header dirs
13+
list (APPEND WSJCPP_INCLUDE_DIRS "src")
14+
15+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_yaml.h")
16+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_yaml.cpp")
17+
list (APPEND WSJCPP_SOURCES "src/main.cpp")
18+
19+
include_directories(${WSJCPP_INCLUDE_DIRS})
20+
21+
add_executable ("wsjcpp-yaml" ${WSJCPP_SOURCES})
22+
23+
target_link_libraries("wsjcpp-yaml" -lpthread ${WSJCPP_LIBRARIES} )
24+
25+
install(
26+
TARGETS
27+
"wsjcpp-yaml"
28+
RUNTIME DESTINATION
29+
/usr/bin
30+
)

build_simple.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
if [ ! -d tmp ]; then
4+
mkdir -p tmp
5+
fi
6+
7+
cd tmp
8+
cmake ..
9+
make
10+
# cp -rf wsjcpp-yaml ../

clean.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
rm -rf tmp
4+
rm -rf Makefile
5+
rm -f wsjcpp-yaml
6+

src.wsjcpp/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src.wsjcpp/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Automaticly generated by wsjcpp-yaml@0.0.1
2+
3+
add_definitions(-DWSJCPP_VERSION="0.0.1")
4+
add_definitions(-DWSJCPP_NAME="wsjcpp-yaml")
5+
6+
# set(CMAKE_AUTOMOC ON)
7+
set(CMAKE_CXX_STANDARD 11)
8+
9+
set (WSJCPP_LIBRARIES "")
10+
set (WSJCPP_INCLUDE_DIRS "")
11+
set (WSJCPP_SOURCES "")
12+
13+
list (APPEND WSJCPP_INCLUDE_DIRS "src.wsjcpp/wsjcpp-logger/")
14+
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-logger/fallen.cpp")
15+
list (APPEND WSJCPP_SOURCES "src.wsjcpp/wsjcpp-logger/fallen.h")

0 commit comments

Comments
 (0)