cmake_minimum_required(VERSION 3.10) # Set the project name project(EmbeddedLibraryProject) # Add the executable add_executable(main main.c) # Add the libraries add_library(dataAcquisition libraries/dataAcquisition.c) # Link the libraries to the executable target_link_libraries(main dataAcquisition m)