refact
This commit is contained in:
parent
79aff97033
commit
9bdb4f4c63
|
@ -37,6 +37,6 @@ execute_process(COMMAND "${CMAKE_COMMAND}" --build .
|
|||
add_subdirectory(deps)
|
||||
|
||||
# src
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(source)
|
||||
|
||||
# tests (TODO)
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||
*
|
||||
* This program is free software: you can use, redistribute, and/or modify
|
||||
* it under the terms of the GNU Affero General Public License, version 3
|
||||
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _TD_TROW_H_
|
||||
#define _TD_TROW_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*_TD_TROW_H_*/
|
|
@ -1,5 +1,6 @@
|
|||
add_subdirectory(os)
|
||||
add_subdirectory(util)
|
||||
add_subdirectory(common)
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(dnode)
|
||||
# add_subdirectory(libs)
|
||||
# add_subdirectory(client)
|
||||
# add_subdirectory(server)
|
|
@ -0,0 +1,7 @@
|
|||
aux_source_directory(src COMMON_SRC)
|
||||
add_library(common ${COMMON_SRC})
|
||||
target_include_directories(
|
||||
common
|
||||
PUBLIC "${CMAKE_SOURCE_DIR}/include/common"
|
||||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
|
||||
)
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||
*
|
||||
* This program is free software: you can use, redistribute, and/or modify
|
||||
* it under the terms of the GNU Affero General Public License, version 3
|
||||
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
|
@ -1 +1,10 @@
|
|||
add
|
||||
add_subdirectory(mnode)
|
||||
add_subdirectory(vnode)
|
||||
add_subdirectory(qnode)
|
||||
|
||||
aux_source_directory(src TAOSD_SRC)
|
||||
add_executable(taosd ${TAOSD_SRC})
|
||||
target_link_libraries(
|
||||
taosd
|
||||
private os
|
||||
)
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||
*
|
||||
* This program is free software: you can use, redistribute, and/or modify
|
||||
* it under the terms of the GNU Affero General Public License, version 3
|
||||
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "os.h"
|
||||
|
||||
int main(int argc, char const *argv[]) {
|
||||
printf("Hello world!\n");
|
||||
return 0;
|
||||
}
|
|
@ -4,4 +4,8 @@ target_include_directories(
|
|||
util
|
||||
PUBLIC "${CMAKE_SOURCE_DIR}/include/util"
|
||||
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include"
|
||||
)
|
||||
target_link_libraries(
|
||||
util
|
||||
PRIVATE os
|
||||
)
|
Loading…
Reference in New Issue