Files
cpp-lib/example/CMakeLists.txt
2024-05-20 22:06:48 +02:00

28 lines
560 B
CMake

cmake_minimum_required(VERSION 3.10)
project(clientExample)
# Find the shared library package
find_package(Modelec COMPONENTS
CLParser
TCPClient
Utils
REQUIRED)
# Define the executable
add_executable(client client.example.cpp)
add_executable(parser parser.example.cpp)
# Link the shared library to the executable
target_link_libraries(client
Modelec::CLParser
Modelec::TCPClient
Modelec::Utils
)
target_link_libraries(parser
Modelec::CLParser
Modelec::TCPClient
Modelec::Utils
)