Skip to content

Commit

Permalink
增加静态库和动态库
Browse files Browse the repository at this point in the history
  • Loading branch information
candlewill committed Apr 6, 2017
1 parent 5be8a15 commit f6f8696
Show file tree
Hide file tree
Showing 51 changed files with 2,212 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Bot_tools/Usage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
# 项目信息
project (ChatScript_Main)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 添加头文件目录INCLUDE_DIRECTORIES
Expand All @@ -22,6 +24,11 @@ link_directories("./ChatScript")
# 指定生成目标
add_executable(ChatScript_Main Dialog.cpp Dialog.h test_Dialog.cpp)

SET (LIBHELLO_SRC Dialog.cpp Dialog.h)
ADD_LIBRARY (DialogStatic STATIC ${LIBHELLO_SRC})
ADD_LIBRARY (DialogShared SHARED ${LIBHELLO_SRC})

# 添加链接库
# 使用命令 target_link_libraries 指明可执行文件 main 需要连接一个名为 MathFunctions 的链接库
target_link_libraries(ChatScript_Main ChatScript curl)
target_link_libraries(ChatScript_Main ChatScript curl)
target_link_libraries(DialogStatic ChatScript curl)
12 changes: 12 additions & 0 deletions Bot_tools/Usage/build/CMakeCache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ ChatScript_Main_BINARY_DIR:STATIC=/home/andbase/workspace/Bots/Bot_tools/Usage/b
//Value Computed by CMake
ChatScript_Main_SOURCE_DIR:STATIC=/home/andbase/workspace/Bots/Bot_tools/Usage

//Dependencies for target
DialogShared_LIB_DEPENDS:STATIC=

//Dependencies for the target
DialogStatic_LIB_DEPENDS:STATIC=general;ChatScript;general;curl;

//Dependencies for target
Dialog_LIB_DEPENDS:STATIC=

//Dependencies for target
Dialog_static_LIB_DEPENDS:STATIC=


########################
# INTERNAL cache entries
Expand Down
278 changes: 278 additions & 0 deletions Bot_tools/Usage/build/CMakeFiles/Dialog.dir/CXX.includecache
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
#IncludeRegexLine: ^[ ]*#[ ]*(include|import)[ ]*[<"]([^">]+)([">])

#IncludeRegexScan: ^.*$

#IncludeRegexComplain: ^$

#IncludeRegexTransform:

.././ChatScript/include/common.h
sys/time.h
-
termios.h
-
unistd.h
-
winsock2.h
-
ws2tcpip.h
-
iphlpapi.h
-
dirent.h
-
mach/clock.h
-
mach/mach.h
-
dirent.h
-
mach/clock.h
-
mach/mach.h
-
dirent.h
-
sys/malloc.h
-
malloc.h
-
algorithm
-
assert.h
-
cstddef
-
cstdio
-
cstdlib
-
ctime
-
ctype.h
-
errno.h
-
exception
-
fcntl.h
-
iostream
-
math.h
-
memory.h
-
setjmp.h
-
stdarg.h
-
stdint.h
-
stdio.h
-
stdlib.h
-
string
-
string.h
-
sys/stat.h
-
sys/timeb.h
-
sys/types.h
-
time.h
-
utility
-
vector
-
common1.h
.././ChatScript/include/common1.h
os.h
.././ChatScript/include/os.h
dictionarySystem.h
.././ChatScript/include/dictionarySystem.h
mainSystem.h
.././ChatScript/include/mainSystem.h
factSystem.h
.././ChatScript/include/factSystem.h
functionExecute.h
.././ChatScript/include/functionExecute.h
csocket.h
.././ChatScript/include/csocket.h
constructCode.h
.././ChatScript/include/constructCode.h
english.h
.././ChatScript/include/english.h
infer.h
.././ChatScript/include/infer.h
json.h
.././ChatScript/include/json.h
markSystem.h
.././ChatScript/include/markSystem.h
mongodb.h
.././ChatScript/include/mongodb.h
my_sql.h
.././ChatScript/include/my_sql.h
outputSystem.h
.././ChatScript/include/outputSystem.h
patternSystem.h
.././ChatScript/include/patternSystem.h
postgres.h
.././ChatScript/include/postgres.h
scriptCompile.h
.././ChatScript/include/scriptCompile.h
spellcheck.h
.././ChatScript/include/spellcheck.h
systemVariables.h
.././ChatScript/include/systemVariables.h
tagger.h
.././ChatScript/include/tagger.h
testing.h
.././ChatScript/include/testing.h
textUtilities.h
.././ChatScript/include/textUtilities.h
tokenSystem.h
.././ChatScript/include/tokenSystem.h
topicSystem.h
.././ChatScript/include/topicSystem.h
userCache.h
.././ChatScript/include/userCache.h
userSystem.h
.././ChatScript/include/userSystem.h
variableSystem.h
.././ChatScript/include/variableSystem.h
privatesrc.h
.././ChatScript/include/privatesrc.h
../privatecode/preprocess.h
.././ChatScript/privatecode/preprocess.h
direct.h
-
unistd.h
-

.././ChatScript/include/common1.h

.././ChatScript/include/constructCode.h

.././ChatScript/include/csocket.h
winsock2.h
-
arpa/inet.h
-
netdb.h
-
netinet/in.h
-
sys/socket.h
-
sys/socket.h
-
sys/types.h
-
unistd.h
-

.././ChatScript/include/dictionaryMore.h

.././ChatScript/include/dictionarySystem.h
dictionaryMore.h
.././ChatScript/include/dictionaryMore.h

.././ChatScript/include/english.h

.././ChatScript/include/evserver.h
winsock.h
-
arpa/inet.h
-
netdb.h
-
netinet/in.h
-
sys/socket.h
-
sys/types.h
-
unistd.h
-
netinet/tcp.h
-

.././ChatScript/include/factSystem.h

.././ChatScript/include/functionExecute.h
common.h
.././ChatScript/include/common.h

.././ChatScript/include/infer.h

.././ChatScript/include/json.h

.././ChatScript/include/mainSystem.h

.././ChatScript/include/markSystem.h

.././ChatScript/include/mongodb.h

.././ChatScript/include/my_sql.h

.././ChatScript/include/os.h

.././ChatScript/include/outputSystem.h
common.h
.././ChatScript/include/common.h

.././ChatScript/include/patternSystem.h
common.h
.././ChatScript/include/common.h

.././ChatScript/include/postgres.h

.././ChatScript/include/privatesrc.h
../privatecode/privatesrc.h
.././ChatScript/privatecode/privatesrc.h

.././ChatScript/include/scriptCompile.h

.././ChatScript/include/spellcheck.h

.././ChatScript/include/systemVariables.h

.././ChatScript/include/tagger.h

.././ChatScript/include/testing.h

.././ChatScript/include/textUtilities.h

.././ChatScript/include/tokenSystem.h
common.h
.././ChatScript/include/common.h

.././ChatScript/include/topicSystem.h

.././ChatScript/include/userCache.h

.././ChatScript/include/userSystem.h

.././ChatScript/include/variableSystem.h

.././ChatScript/privatecode/preprocess.h

.././ChatScript/privatecode/privatesrc.h

/home/andbase/workspace/Bots/Bot_tools/Usage/Dialog.cpp
common.h
/home/andbase/workspace/Bots/Bot_tools/Usage/common.h
evserver.h
/home/andbase/workspace/Bots/Bot_tools/Usage/evserver.h
Dialog.h
/home/andbase/workspace/Bots/Bot_tools/Usage/Dialog.h

/home/andbase/workspace/Bots/Bot_tools/Usage/Dialog.h
stdio.h
-

21 changes: 21 additions & 0 deletions Bot_tools/Usage/build/CMakeFiles/Dialog.dir/DependInfo.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/andbase/workspace/Bots/Bot_tools/Usage/Dialog.cpp" "/home/andbase/workspace/Bots/Bot_tools/Usage/build/CMakeFiles/Dialog.dir/Dialog.cpp.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")

# The include file search paths:
set(CMAKE_CXX_TARGET_INCLUDE_PATH
".././ChatScript/include"
)

# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)

# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
Loading

0 comments on commit f6f8696

Please sign in to comment.