Skip to content

Instantly share code, notes, and snippets.

@ukicomputers
Created December 23, 2023 17:04
Show Gist options
  • Save ukicomputers/a419c10cfe1869f12087367d46ee8b28 to your computer and use it in GitHub Desktop.
Save ukicomputers/a419c10cfe1869f12087367d46ee8b28 to your computer and use it in GitHub Desktop.
LibSerial project example CMake
cmake_minimum_required(VERSION 3.8)
project(serial)
find_package(PkgConfig)
pkg_check_modules(SERIAL libserial)
add_executable(${PROJECT_NAME} main.cpp)
target_include_directories(${PROJECT_NAME} PUBLIC ${SERIAL_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} PUBLIC ${SERIAL_LDFLAGS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment