CMake动态链接库源文件,目录树

.
|-- bin
|-- build
| |-- CMakeCache.txt
| |-- CMakeFiles
| | |-- 2.8.10.2
| | | |-- CMakeCCompiler.cmake
| | | |-- CMakeCXXCompiler.cmake
| | | |-- CMakeDetermineCompilerABI_C.bin
| | | |-- CMakeDetermineCompilerABI_CXX.bin
| | | |-- CMakeSystem.cmake
| | | |-- CompilerIdC
| | | | |-- a.out
| | | | `-- CMakeCCompilerId.c
| | | `-- CompilerIdCXX
| | | |-- a.out
| | | `-- CMakeCXXCompilerId.cpp
| | |-- cmake.check_cache
| | |-- CMakeDirectoryInformation.cmake
| | |-- CMakeOutput.log
| | |-- CMakeTmp
| | |-- main_exec.dir
| | | |-- build.make
| | | |-- cmake_clean.cmake
| | | |-- CXX.includecache
| | | |-- DependInfo.cmake
| | | |-- depend.internal
| | | |-- depend.make
| | | |-- flags.make
| | | |-- link.txt
| | | |-- main_test.cpp.o
| | | `-- progress.make
| | |-- Makefile2
| | |-- Makefile.cmake
| | |-- Progress
| | | |-- 1
| | | `-- count.txt
| | |-- progress.marks
| | `-- TargetDirectories.txt
| |-- cmake_install.cmake
| `-- Makefile
|-- CMakeCache.txt
|-- CMakeFiles
| |-- 2.8.10.2
| | |-- CMakeCCompiler.cmake
| | |-- CMakeCXXCompiler.cmake
| | |-- CMakeDetermineCompilerABI_C.bin
| | |-- CMakeDetermineCompilerABI_CXX.bin
| | |-- CMakeSystem.cmake
| | |-- CompilerIdC
| | | |-- a.out
| | | `-- CMakeCCompilerId.c
| | `-- CompilerIdCXX
| | |-- a.out
| | `-- CMakeCXXCompilerId.cpp
| |-- cmake.check_cache
| |-- CMakeDirectoryInformation.cmake
| |-- CMakeOutput.log
| |-- CMakeTmp
| |-- main_exec.dir
| | |-- build.make
| | |-- cmake_clean.cmake
| | |-- CXX.includecache
| | |-- DependInfo.cmake
| | |-- depend.internal
| | |-- depend.make
| | |-- flags.make
| | |-- link.txt
| | |-- progress.make
| | `-- src
| | `-- main_test.cpp.o
| |-- Makefile2
| |-- Makefile.cmake
| |-- progress.marks
| `-- TargetDirectories.txt
|-- cmake_install.cmake
|-- CMakeLists.txt
|-- CMakeLists.txt.back
|-- lib1
| |-- CMakeCache.txt
| |-- CMakeFiles
| | |-- 2.8.10.2
| | | |-- CMakeCCompiler.cmake
| | | |-- CMakeCXXCompiler.cmake
| | | |-- CMakeDetermineCompilerABI_C.bin
| | | |-- CMakeDetermineCompilerABI_CXX.bin
| | | |-- CMakeSystem.cmake
| | | |-- CompilerIdC
| | | | |-- a.out
| | | | `-- CMakeCCompilerId.c
| | | `-- CompilerIdCXX
| | | |-- a.out
| | | `-- CMakeCXXCompilerId.cpp
| | |-- cmake.check_cache
| | |-- CMakeDirectoryInformation.cmake
| | |-- CMakeOutput.log
| | |-- CMakeTmp
| | |-- lib1.dir
| | | |-- build.make
| | | |-- cmake_clean.cmake
| | | |-- CXX.includecache
| | | |-- DependInfo.cmake
| | | |-- depend.internal
| | | |-- depend.make
| | | |-- flags.make
| | | |-- link.txt
| | | |-- progress.make
| | | `-- src
| | | `-- fun1.cpp.o
| | |-- lib_shared.dir
| | | |-- build.make
| | | |-- cmake_clean.cmake
| | | |-- CXX.includecache
| | | |-- DependInfo.cmake
| | | |-- depend.internal
| | | |-- depend.make
| | | |-- flags.make
| | | |-- link.txt
| | | |-- progress.make
| | | `-- src
| | | `-- fun1.cpp.o
| | |-- Makefile2
| | |-- Makefile.cmake
| | |-- progress.marks
| | `-- TargetDirectories.txt
| |-- cmake_install.cmake
| |-- CMakeLists.txt
| |-- include
| | `-- fun1.h
| |-- lib_out
| | `-- libprint.so
| |-- Makefile
| `-- src
| `-- fun1.cpp
|-- main_exec
|-- Makefile
`-- src
|-- CMakeCache.txt
|-- CMakeFiles
| |-- 2.8.10.2
| | |-- CMakeCCompiler.cmake
| | |-- CMakeCXXCompiler.cmake
| | |-- CMakeDetermineCompilerABI_C.bin
| | |-- CMakeDetermineCompilerABI_CXX.bin
| | |-- CMakeSystem.cmake
| | |-- CompilerIdC
| | | |-- a.out
| | | `-- CMakeCCompilerId.c
| | `-- CompilerIdCXX
| | |-- a.out
| | `-- CMakeCXXCompilerId.cpp
| |-- cmake.check_cache
| |-- CMakeDirectoryInformation.cmake
| |-- CMakeOutput.log
| |-- CMakeTmp
| |-- main_exec.dir
| | |-- build.make
| | |-- cmake_clean.cmake
| | |-- CXX.includecache
| | |-- DependInfo.cmake
| | |-- depend.internal
| | |-- depend.make
| | |-- flags.make
| | |-- link.txt
| | |-- main_test.cpp.o
| | `-- progress.make
| |-- Makefile2
| |-- Makefile.cmake
| |-- Progress
| | |-- 1
| | `-- count.txt
| |-- progress.marks
| `-- TargetDirectories.txt
|-- cmake_install.cmake
|-- include
| `-- fun1.h
|-- lib_out
| `-- liblib1.so
|-- main_test.cpp
`-- Makefile

 

./src/main_test.cpp

#include <stdio.h>
#include "fun1.h"

int main(void)
{
func1(6667);
return 0;
}

 

lib1/src/fun1.cpp

#include <stdio.h>

void func1(int in)
{
printf("fun1 say data is %d\n", in);
}

 

posted @ 2020-04-21 16:15  FL1188  阅读(431)  评论(0)    收藏  举报