diff options
Diffstat (limited to 'Tests/LibName')
-rw-r--r-- | Tests/LibName/CMakeLists.txt | 7 | ||||
-rw-r--r-- | Tests/LibName/bar.c | 3 | ||||
-rw-r--r-- | Tests/LibName/foo.c | 5 | ||||
-rw-r--r-- | Tests/LibName/foobar.c | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/Tests/LibName/CMakeLists.txt b/Tests/LibName/CMakeLists.txt new file mode 100644 index 0000000..649aae3 --- /dev/null +++ b/Tests/LibName/CMakeLists.txt @@ -0,0 +1,7 @@ +project(LibName) +set(LIBRARY_OUTPUT_PATH lib) +add_library(bar SHARED bar.c) +add_library(foo SHARED foo.c) +target_link_libraries(foo bar) +add_executable(foobar foobar.c) +target_link_libraries(foobar foo) diff --git a/Tests/LibName/bar.c b/Tests/LibName/bar.c new file mode 100644 index 0000000..c434bf7 --- /dev/null +++ b/Tests/LibName/bar.c @@ -0,0 +1,3 @@ +__declspec(dllexport) void foo() +{ +} diff --git a/Tests/LibName/foo.c b/Tests/LibName/foo.c new file mode 100644 index 0000000..b068b46 --- /dev/null +++ b/Tests/LibName/foo.c @@ -0,0 +1,5 @@ +__declspec(dllimport) void foo(); +__declspec(dllexport) void bar() +{ + foo(); +} diff --git a/Tests/LibName/foobar.c b/Tests/LibName/foobar.c new file mode 100644 index 0000000..ac22ab3 --- /dev/null +++ b/Tests/LibName/foobar.c @@ -0,0 +1,7 @@ +__declspec(dllimport) void bar(); + +int main(int ac, char** av) +{ + bar(); + return 0; +} |