file(GLOB_RECURSE FILE_SOURCES "*.h" "*.c" "*.cpp") foreach(_source IN LISTS FILE_SOURCES) if(IS_SYMLINK "${_source}") list(REMOVE_ITEM FILE_SOURCES "${_source}") endif() endforeach() list(APPEND FILE_SOURCES "${CMAKE_SOURCE_DIR}/src/UserInterface/GUIDKeyCompat.cpp") add_executable(UserInterface WIN32 ${FILE_SOURCES} ${CMAKE_SOURCE_DIR}/src/UserInterface/UserInterface.rc) set_target_properties(UserInterface PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin OUTPUT_NAME_DEBUG "Metin2_Debug" OUTPUT_NAME_RELEASE "Metin2_Release" OUTPUT_NAME_RELWITHDEBINFO "Metin2_RelWithDebInfo" ) if(MSVC) set_target_properties(UserInterface PROPERTIES LINK_FLAGS "/level='requireAdministrator' /uiAccess='false'") endif() target_include_directories(UserInterface PRIVATE $<$:${CMAKE_SOURCE_DIR}/src/UserInterface> ) target_link_libraries(UserInterface AudioLib Discord EffectLib EterBase EterGrnLib EterImageLib EterLib EterLocale EterPythonLib GameLib PRTerrainLib PythonModules ScriptLib SpeedTreeLib SphereLib PackLib EterLib lzo2 libzstd_static mio DirectX Granny $<$:SpeedTree> Python WebView ws2_32 imm32 winmm strmiids amstrmid dmoguids version $<$:Dbghelp> $<$>:dbghelp> EterImageLib AudioLib PythonModules EterBase ) GroupSourcesByFolder(UserInterface)