You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
618 B
32 lines
618 B
4 years ago
|
---
|
||
|
# Automatically generated from tests/interface/cmake.toml - DO NOT EDIT
|
||
|
layout: default
|
||
|
title: Header-only library
|
||
|
permalink: /examples/interface
|
||
|
parent: Examples
|
||
|
nav_order: 1
|
||
|
---
|
||
|
|
||
|
# Header-only library
|
||
|
|
||
|
|
||
|
|
||
|
```toml
|
||
|
[project]
|
||
|
name = "interface"
|
||
|
description = "Header-only library"
|
||
|
|
||
|
[target.mylib]
|
||
|
type = "interface"
|
||
|
include-directories = ["include"]
|
||
|
|
||
|
[target.example]
|
||
|
type = "executable"
|
||
|
sources = ["src/main.cpp"]
|
||
|
link-libraries = ["mylib"]
|
||
|
```
|
||
|
|
||
|
|
||
|
|
||
|
<sup><sub>This page was automatically generated from [tests/interface/cmake.toml](https://github.com/build-cpp/cmkr/tree/main/tests/interface/cmake.toml).</sub></sup>
|