initial commit - linking static lib to executable
This commit is contained in:
2
cplusplus/cmake_ys/executable_staticlib/B/CMakeLists.txt
Normal file
2
cplusplus/cmake_ys/executable_staticlib/B/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
add_subdirectory(TestB)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
add_executable(TestB)
|
||||
target_sources(TestB
|
||||
PRIVATE
|
||||
testB.cxx
|
||||
)
|
||||
@@ -0,0 +1,8 @@
|
||||
#include "iostream"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
std::cout<<"hello world"<<std::endl;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user