Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fix bitmapcode helper not building when it should be
[xestiaab/.git] / source / CMakeFunctions / Application.cmake
index d3b44f7..2609cd1 100644 (file)
@@ -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()
 
 
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