Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fix bitmapcode helper not building when it should be release-0.24
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 9 Oct 2020 20:12:42 +0000 (21:12 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Thu, 15 Oct 2020 18:51:11 +0000 (19:51 +0100)
source/CMakeFunctions/Application.cmake
source/actmgr/CMakeLists.txt
source/common/CMakeLists.txt
source/export/CMakeLists.txt
source/import/CMakeLists.txt
source/search/CMakeLists.txt
source/tools/CMakeLists.txt
source/vcard/CMakeLists.txt
source/widgets/CMakeLists.txt

index aa8393d..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
index 9e87ae0..735c5a2 100644 (file)
@@ -10,3 +10,6 @@ endif()
 
 add_library(${TARGET_NAME}
             ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
index 588c631..4621fb8 100644 (file)
@@ -39,3 +39,6 @@ endif()
 
 add_library(${TARGET_NAME}
             ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
index 6073156..f4d08c3 100644 (file)
@@ -9,3 +9,6 @@ set(FILE_LIST export.cpp
 
 add_library(${TARGET_NAME}
             ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
index f71284e..708597d 100644 (file)
@@ -13,4 +13,7 @@ set(FILE_LIST frmImportContacts.cpp
               import-vcard4.h)
 
 add_library(${TARGET_NAME}
-            ${FILE_LIST})
\ No newline at end of file
+            ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
index 73dfc72..5a32543 100644 (file)
@@ -11,4 +11,7 @@ set(FILE_LIST frmSearch.cpp
               XABSearchPanel.h)
 
 add_library(${TARGET_NAME}
-            ${FILE_LIST})
\ No newline at end of file
+            ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
index fb9e8b8..7a05fce 100644 (file)
@@ -2,21 +2,30 @@ add_executable(bitmapcode
     bitmapcode.cpp)
 
 if (MSVC)
+    target_link_libraries(bitmapcode
+        LINK_PUBLIC
+        ${wxWidgets_LIBRARIES})
     add_custom_command(
         TARGET bitmapcode
         POST_BUILD
-        COMMAND $(OutDir)/bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps)
-endif()
-
-if (APPLE)
+        COMMAND bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps)
+elseif (APPLE)
     target_link_libraries(bitmapcode
         LINK_PUBLIC
         c++
         ${wxWidgets_LIBRARIES})
+    add_custom_command(
+        TARGET bitmapcode
+        POST_BUILD
+        COMMAND bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps)
 else()
     target_link_libraries(bitmapcode
         LINK_PUBLIC
         ${wxWidgets_LIBRARIES})
+    add_custom_command(
+        TARGET bitmapcode
+        POST_BUILD
+        COMMAND bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps)
 endif()
 
 set (sources 
index ac59f5d..ee9234c 100644 (file)
@@ -8,4 +8,7 @@ set(FILE_LIST vcard.cpp
               vcard34conv-v4conv.cpp)
 
 add_library(${TARGET_NAME}
-            ${FILE_LIST})
\ No newline at end of file
+            ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
index 5621203..2bec6ce 100644 (file)
@@ -8,4 +8,7 @@ set(FILE_LIST XABAccountView.cpp
               XABPriorityCtrl.h)
 
 add_library(${TARGET_NAME}
-            ${FILE_LIST})
\ No newline at end of file
+            ${FILE_LIST})
+
+add_dependencies(${TARGET_NAME}
+                 bitmapcode)
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