Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fix broken Linux and Windows builds
[xestiaab/.git] / source / CMakeFunctions / Application.cmake
index d3b44f7..aa8393d 100644 (file)
@@ -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()
 
 
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy