Skip to content

Commit

Permalink
Add cli tools earlier to install them before fixup_bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
nohal committed Apr 1, 2024
1 parent 548aca3 commit 10667a3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,15 @@ if (UNIX AND NOT APPLE)
set(CPACK_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
endif ()

# Command line tools - must be added before the macOS bundle is defined, otherwise they do not get installed before fixup_bundle is performed
if (NOT QT_ANDROID)
add_subdirectory(cli)
endif ()

if (NOT QT_ANDROID AND OCPN_USE_GL)
add_subdirectory(glutil)
endif ()

#
# Apple application bundle
#
Expand Down Expand Up @@ -2706,14 +2715,6 @@ endif ()
add_subdirectory(model)
target_link_libraries(${PACKAGE_NAME} PUBLIC ocpn::model-src ocpn::model)

if (NOT QT_ANDROID)
add_subdirectory(cli)
endif ()

if (NOT QT_ANDROID AND OCPN_USE_GL)
add_subdirectory(glutil)
endif ()

if (OCPN_BUILD_TEST)
add_subdirectory(libs/gtest)
add_subdirectory(test)
Expand Down

0 comments on commit 10667a3

Please sign in to comment.