cmakelists.txt

来自「nandflash文件系统源代码」· 文本 代码 · 共 30 行

TXT
30
字号
# Take all the .cc files and build a library out of themfile (GLOB sources *.cc)## Build a static and a dynamically linked libraries.  Both libraries# should have the same root name, but installed in different places#add_library (kfsClient STATIC ${sources})add_library (kfsClient-shared SHARED ${sources})set_target_properties (kfsClient-shared PROPERTIES OUTPUT_NAME "kfsClient")## Since the objects have to be built twice, set this up so they don't# clobber each other.set_target_properties (kfsClient PROPERTIES CLEAN_DIRECT_OUTPUT 1)set_target_properties (kfsClient-shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)add_dependencies (kfsClient kfsCommon kfsIO)# get everthing into onetarget_link_libraries (kfsClient kfsCommon kfsIO)target_link_libraries (kfsClient-shared kfsCommon-shared kfsIO-shared)#install (TARGETS kfsClient kfsClient-shared        LIBRARY DESTINATION lib        ARCHIVE DESTINATION lib/static)install (FILES KfsAttr.h KfsClient.h DESTINATION include/kfs)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?