2019年7月9日 星期二

cmake example

只要一段時間沒有寫某特定程式語言,就會忘記語法。

保留一下 sample code,看以後會不會比較快撈回來。

CMakeLists.txt:

cmake_minimum_required(VERSION 3.10)
project(hello)
find_package(DBus1 REQUIRED)
include_directories(./inc ${DBus1_INCLUDE_DIRS})
add_executable(hello src/test.c)
target_link_libraries(hello ${DBus1_LIBRARIES})

沒有留言:

張貼留言