vcpkg/ports/mygui/Use-vcpkg-sdl2.patch
Cheney Wang 842c72898a
[mygui] Add feature tools (#25228)
* [mygui] Add feature tools

* x-add-version

* Test tools on CI

* overwrite-version

* Add the part of install tools to source's cmakefile

* x-add-version --overwrite-version

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
2022-06-16 15:23:28 -07:00

15 lines
608 B
Diff

diff --git a/Common/CMakeLists.txt b/Common/CMakeLists.txt
index 2b160ff..559e6a8 100644
--- a/Common/CMakeLists.txt
+++ b/Common/CMakeLists.txt
@@ -99,6 +99,8 @@ add_library(${PROJECTNAME} ${HEADER_FILES} ${SOURCE_FILES})
mygui_set_platform_name(${MYGUI_RENDERSYSTEM})
add_dependencies(${PROJECTNAME} MyGUI.${MYGUI_PLATFORM_NAME}Platform)
-target_link_libraries(${PROJECTNAME} MyGUI.${MYGUI_PLATFORM_NAME}Platform)
+
+find_package(SDL2 CONFIG REQUIRED)
+target_link_libraries(${PROJECTNAME} MyGUI.${MYGUI_PLATFORM_NAME}Platform SDL2::SDL2 SDL2::SDL2main)
add_dependencies(${PROJECTNAME} MyGUIEngine)