cmake_minimum_required(VERSION 3.15) project(test_package C) find_package(ethercat REQUIRED CONFIG) add_executable(test_package test_package.c) target_link_libraries(test_package EtherLab::ethercat)