This commit is contained in:
2021-07-12 17:22:42 +03:00
commit 84844eeab2
9 changed files with 77 additions and 0 deletions

7
alib/CMakeLists.txt Normal file
View File

@@ -0,0 +1,7 @@
add_library(alib calc.c)
target_include_directories(alib
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
install(TARGETS alib DESTINATION lib)
install(FILES calc.h DESTINATION include)

5
alib/calc.c Normal file
View File

@@ -0,0 +1,5 @@
#include "calc.h"
int docalc() {
return 2;
}

1
alib/calc.h Normal file
View File

@@ -0,0 +1 @@
int docalc();