Skip to content

Commit

Permalink
Consolidate target_link_libraries calls
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed May 8, 2024
1 parent 8de475d commit 549a2dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ target_link_libraries(

add_executable(cli main.cpp)

target_link_libraries(cli PRIVATE cli-lib)

set_target_properties(cli PROPERTIES OUTPUT_NAME dokit)

# Add a custom Info.plist file to the app bundle.
Expand Down Expand Up @@ -79,6 +77,7 @@ endif()

target_link_libraries(
cli
PRIVATE cli-lib
PRIVATE QtPokit
PRIVATE Qt${QT_VERSION_MAJOR}::Core
PRIVATE Qt${QT_VERSION_MAJOR}::Bluetooth)
Expand Down
3 changes: 1 addition & 2 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ target_link_libraries(

add_executable(gui MACOSX_BUNDLE main.cpp)

target_link_libraries(gui PRIVATE gui-lib)

set_target_properties(gui PROPERTIES OUTPUT_NAME Dokit)

# Only include localisation for Qt6+ for now. We could support Qt5
Expand All @@ -54,6 +52,7 @@ endif()

target_link_libraries(
gui
PRIVATE gui-lib
PRIVATE QtPokit
PRIVATE Qt${QT_VERSION_MAJOR}::Core
PRIVATE Qt${QT_VERSION_MAJOR}::Bluetooth
Expand Down

0 comments on commit 549a2dd

Please sign in to comment.