X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FCMakeFunctions%2FApplication.cmake;h=2609cd16e23c51a01a21da4fab1566f9610faf21;hp=d3b44f74252681bd50a9c3b8c4afb21a829200a7;hb=ce18438e729e6c11eebd3a5fb73f4039fdda33a0;hpb=3ef806261b5482a584e05dc8311c8d7633f146b4 diff --git a/source/CMakeFunctions/Application.cmake b/source/CMakeFunctions/Application.cmake index d3b44f7..2609cd1 100644 --- a/source/CMakeFunctions/Application.cmake +++ b/source/CMakeFunctions/Application.cmake @@ -9,6 +9,9 @@ set(MISC_FILE_LIST convert.cpp add_library(${MISC_TARGET_NAME} ${MISC_FILE_LIST}) +add_dependencies(${MISC_TARGET_NAME} + bitmapcode) + set(FILE_LIST main.cpp AppXestiaAddrBk.cpp AppXestiaAddrBk.h @@ -62,12 +65,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 +119,9 @@ elseif(APPLE) else() add_executable(xestiaab ${FILE_LIST}) + + target_link_libraries(xestiaab LINK_PUBLIC + ${LIBRARIES}) endif()