From b65e88424e6059ab733590eb0fafcd2883581d9f Mon Sep 17 00:00:00 2001 From: Rocka Date: Mon, 13 Mar 2023 13:29:06 +0800 Subject: [PATCH] Add test case for module compatible mode --- lua-config-package-tests/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua-config-package-tests/CMakeLists.txt b/lua-config-package-tests/CMakeLists.txt index 98a75ff..48c52b6 100644 --- a/lua-config-package-tests/CMakeLists.txt +++ b/lua-config-package-tests/CMakeLists.txt @@ -12,3 +12,10 @@ target_link_libraries(lua-config-package-build-test-using-shared-target Lua::lua add_executable(lua-config-package-build-test-using-variables "./lua-config-package-build-test.c") target_link_libraries(lua-config-package-build-test-using-variables ${LUA_LIBRARIES}) +add_library(lua-lib-module-compatible-mode UNKNOWN IMPORTED ${LUA_LIBRARY}) +set_target_properties(lua-lib-module-compatible-mode PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES ${LUA_INCLUDE_DIR} + IMPORTED_LOCATION ${LUA_LIBRARY}) + +add_executable(lua-config-package-build-test-using-module-compatible-mode "./lua-config-package-build-test.c") +target_link_libraries(lua-config-package-build-test-using-module-compatible-mode lua-lib-module-compatible-mode)