X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FCMakeFunctions%2FApplication.cmake;h=aa8393d13b1cc8c5e73acbc8f9f124df4dca5a5b;hp=d3b44f74252681bd50a9c3b8c4afb21a829200a7;hb=0d97425fcb83c04a0db5558b6e793fbc2372726e;hpb=03ec5c6000d08696507c336d1ae8d62171abfa7f diff --git a/source/CMakeFunctions/Application.cmake b/source/CMakeFunctions/Application.cmake index d3b44f7..aa8393d 100644 --- a/source/CMakeFunctions/Application.cmake +++ b/source/CMakeFunctions/Application.cmake @@ -62,12 +62,12 @@ if (MSVC) security cryptui crypt32) -endif() - -if (MSVC) list(APPEND FILE_LIST os/msw/xestiaab.rc) + add_executable(xestiaab WIN32 - ${FILE_LIST}) + ${FILE_LIST}) + target_link_libraries(xestiaab LINK_PUBLIC + ${LIBRARIES}) elseif(APPLE) # Main icons set_source_files_properties(os/osx/XestiaAddressBook.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") @@ -116,6 +116,9 @@ elseif(APPLE) else() add_executable(xestiaab ${FILE_LIST}) + + target_link_libraries(xestiaab LINK_PUBLIC + ${LIBRARIES}) endif()