JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

add libs to demo project using cmake

发布时间 2023-06-20 13:59:30作者: BruceWayne09
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project("demo")

set(DEMO_INCLUDE_DIRS "./include")
set(DEMO_LIB_DIRS "./lib")

message("${DEMO_INCLUDE_DIRS}")
message("${DEMO_LIB_DIRS}")

include_directories("${DEMO_INCLUDE_DIRS}")
link_directories("${DEMO_LIB_DIRS}")

set(DEMO_SOURCE ./main.cpp)

add_executable(demo ${DEMO_SOURCE})

target_link_libraries(demo -lhelloworld)

    本栏目推荐文章
  • IDEA项目名称后面出现中括号,模块Modules的名子和文件夹名称不同,可以右键修改名称也可以在File->Project Structure 修改Modules的Name(快捷键ctrl+Shift+Alt+s)
  • Echarts demo
  • Early lameness detection in dairy cattle based on wearable gait analysis using semi-supervised LSTM-Autoencoder
  • [linux kernel] struct pid && the way the kernel used to cast uint32_t pid to struct task_struct
  • dlv调试时访问不可达函数报错please use a line with a statement
  • android编译kanzi 问题 (3) Build command failed.ninja: error: '../../../../../../lib/android_gradle/ES3_Release/arm64-v8a/xxxxx.so', needed by 'xxxxxx.so', missing and no known rule to make it
  • OPEN SQL取单条数据DEMO
  • Coding Languages used in Smart cars
  • cmake 交叉编译设置
  • vue报错:You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file.
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们