Skip to content

Commit

Permalink
Merge pull request #52 from bdbcat/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
bdbcat committed Nov 10, 2023
2 parents f1991ee + 28e27d0 commit e6ffd31
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ set(LONG_DESCRIPTION "Climatology provides overlay capabilities for historic wea
set(VERSION_MAJOR "1")
set(VERSION_MINOR "6")
set(VERSION_PATCH "30")
set(VERSION_TWEAK "2")
set(VERSION_TWEAK "3")
set(VERSION_DATE "15/10/2023")#DD/MM/YYYY format
set(OCPN_MIN_VERSION "ov58")

Expand Down
18 changes: 18 additions & 0 deletions cmake/PluginInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@ endif(UNIX AND NOT APPLE AND NOT QT_ANDROID)

set(PARENT opencpn)

if(APPLE)
install(
TARGETS ${PACKAGE_NAME}
RUNTIME
LIBRARY DESTINATION OpenCPN.app/Contents/PlugIns)
if(EXISTS ${PROJECT_SOURCE_DIR}/data)
install(DIRECTORY data DESTINATION OpenCPN.app/Contents/SharedSupport/plugins/${PACKAGE_NAME})
endif()

if(EXISTS ${PROJECT_SOURCE_DIR}/UserIcons)
install(DIRECTORY UserIcons DESTINATION OpenCPN.app/Contents/SharedSupport/plugins/${PACKAGE_NAME})
endif()

find_package(ZLIB REQUIRED)
target_link_libraries(${PACKAGE_NAME} ${ZLIB_LIBRARIES})

endif(APPLE)

# Based on code from nohal
if(NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX ${TENTATIVE_PREFIX})
Expand Down

0 comments on commit e6ffd31

Please sign in to comment.