From 8a50497b1946b6ca7a81190586c2d5beab8fd5c4 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Sat, 11 Apr 2020 19:40:25 +0200 Subject: [PATCH] add note for executables --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 362d3fd..8708e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,8 +37,9 @@ FILE(GLOB_RECURSE sources "${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp") # ---- Create library ---- -# Note: for single header libraries use the following instead: -# add_library(Greeter INTERFACE) +# Notes: +# for single header libraries use `add_library(Greeter INTERFACE)` instead +# To create an executable use `add_executable(Greeter ${headers} ${sources})` add_library(Greeter ${headers} ${sources}) # Note: for single header libraries use the following instead: