From 05f72fcd86ea43e17aecaef739f1ef6f773fa4e8 Mon Sep 17 00:00:00 2001 From: yangchao <1162485779@qq.com> Date: Wed, 20 Oct 2021 15:32:11 +0800 Subject: [PATCH] add sdl2 --- linux/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index e4a6e931..51122074 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -98,6 +98,12 @@ set_target_properties(tbb PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/tbb ) +add_library(sdl2 SHARED IMPORTED GLOBAL) +set_target_properties(sdl2 PROPERTIES + IMPORTED_LOCATION ${linux_lib_dir}/libSDL2.so + INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/sdl2 +) + list(APPEND CC_EXTERNAL_INCLUDES ${platform_spec_path}/include ${platform_spec_path}/include/v8 @@ -122,4 +128,5 @@ list(APPEND CC_EXTERNAL_LIBS curl webp tbb + sdl2 )