Files
cpp-lib/example/CMakeLists.txt
2024-05-19 10:59:13 +02:00

16 lines
331 B
CMake

cmake_minimum_required(VERSION 3.10)
project(MySecondProject)
# Find the shared library package
find_package(Modelec COMPONENTS
CLParser
REQUIRED)
# Define the executable
add_executable(MyExecutable main.cpp)
# Link the shared library to the executable
target_link_libraries(MyExecutable
Modelec::CLParser
)