diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/ExportImport/Export/testExe1.c | 4 | ||||
-rw-r--r-- | Tests/ExportImport/Export/testExe1lib.c | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index 62fe811..ac2f10f 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -5,7 +5,9 @@ if(CMAKE_ANSI_CFLAGS) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}") endif(CMAKE_ANSI_CFLAGS) +add_library(testExe1lib STATIC testExe1lib.c) # not exported add_executable(testExe1 testExe1.c) +target_link_libraries(testExe1 testExe1lib) add_executable(testExe2 testExe2.c) set_property(TARGET testExe2 PROPERTY ENABLE_EXPORTS 1) diff --git a/Tests/ExportImport/Export/testExe1.c b/Tests/ExportImport/Export/testExe1.c index 39177d0..8ac154f 100644 --- a/Tests/ExportImport/Export/testExe1.c +++ b/Tests/ExportImport/Export/testExe1.c @@ -1,5 +1,7 @@ #include <stdio.h> +extern int testExe1lib(); + int main(int argc, const char* argv[]) { if(argc < 2) @@ -20,5 +22,5 @@ int main(int argc, const char* argv[]) return 1; } } - return 0; + return testExe1lib(); } diff --git a/Tests/ExportImport/Export/testExe1lib.c b/Tests/ExportImport/Export/testExe1lib.c new file mode 100644 index 0000000..60cd746 --- /dev/null +++ b/Tests/ExportImport/Export/testExe1lib.c @@ -0,0 +1 @@ +int testExe1lib() { return 0; } |