mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 23:59:08 +08:00
842c72898a
* [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>
15 lines
608 B
Diff
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)
|