Add test case for module compatible mode

This commit is contained in:
Rocka 2023-03-13 13:29:06 +08:00 committed by Walter Schell
parent bc32a7bb25
commit b65e88424e

View File

@ -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)