initial commit - linking static lib to executable

This commit is contained in:
dl92
2026-01-11 23:53:13 +00:00
parent a9d1275ad2
commit f8d7fdda5d
10 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
add_library(LibA)
target_sources(LibA
PRIVATE
func1.cxx
PUBLIC
FILE_SET HEADERS
FILES
func1.h
)

View File

@@ -0,0 +1,6 @@
namespace LibA {
double sqrt(double x)
{
return -42;
}
}

View File

@@ -0,0 +1,3 @@
namespace LibA {
double sqrt(double x);
}