imported lab skeletons
This commit is contained in:
parent
4fc8b6c771
commit
e4df45f4a9
47 changed files with 15122 additions and 87 deletions
1
lab1/cmake-example/testlib/CMakeLists.txt
Normal file
1
lab1/cmake-example/testlib/CMakeLists.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_library(TestLib foo.cc bar.cc)
|
||||
6
lab1/cmake-example/testlib/bar.cc
Normal file
6
lab1/cmake-example/testlib/bar.cc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include <iostream>
|
||||
|
||||
void bar_fun(int x)
|
||||
{
|
||||
std::cout << "[bar: " << x << "]" << "\n";
|
||||
}
|
||||
1
lab1/cmake-example/testlib/bar.h
Normal file
1
lab1/cmake-example/testlib/bar.h
Normal file
|
|
@ -0,0 +1 @@
|
|||
void bar_fun(int);
|
||||
7
lab1/cmake-example/testlib/foo.cc
Normal file
7
lab1/cmake-example/testlib/foo.cc
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include <iostream>
|
||||
|
||||
void foo_fun()
|
||||
{
|
||||
auto x = 17; // use a C++11 feature to see if flags are set correctly
|
||||
std::cout << "[foo: " << x << "]" << "\n";
|
||||
}
|
||||
1
lab1/cmake-example/testlib/foo.h
Normal file
1
lab1/cmake-example/testlib/foo.h
Normal file
|
|
@ -0,0 +1 @@
|
|||
void foo_fun();
|
||||
Loading…
Add table
Add a link
Reference in a new issue