Fix OSX bundling issue.
Bundle kicad-ogltest as a console tool into the main KiCad bundle where the other tools reside.
This commit is contained in:
parent
e79f97860c
commit
df2ff50aa2
|
@ -17,7 +17,7 @@ set( OGLTEST_FILES
|
|||
kicad-ogltest.cpp
|
||||
)
|
||||
|
||||
add_executable( kicad-ogltest WIN32 MACOSX_BUNDLE
|
||||
add_executable( kicad-ogltest WIN32
|
||||
${OGLTEST_FILES} )
|
||||
|
||||
target_link_libraries( kicad-ogltest
|
||||
|
@ -28,10 +28,23 @@ target_link_libraries( kicad-ogltest
|
|||
${wxWidgets_LIBRARIES} )
|
||||
|
||||
if( APPLE )
|
||||
# puts binaries into the *.app bundle while linking
|
||||
# puts binary into the main kicad.app bundle while linking
|
||||
set_target_properties( kicad-ogltest PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
|
||||
)
|
||||
# bundle dependencies, rewrite binary to use bundled libraries
|
||||
install( CODE "
|
||||
# override default embedded path settings
|
||||
${OSX_BUNDLE_OVERRIDE_PATHS}
|
||||
|
||||
# do all the work
|
||||
include( BundleUtilities )
|
||||
fixup_bundle( ${OSX_BUNDLE_BUILD_BIN_DIR}/kicad-ogltest
|
||||
\"\"
|
||||
\"\"
|
||||
)
|
||||
" COMPONENT Runtime
|
||||
)
|
||||
else()
|
||||
install( TARGETS kicad-ogltest
|
||||
DESTINATION ${KICAD_BIN}
|
||||
|
|
Loading…
Reference in New Issue