mirror of
https://github.com/modelec/cpp-lib.git
synced 2026-01-18 16:17:22 +01:00
16 lines
331 B
CMake
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
|
|
) |