Fixed install path for OSX

This commit is contained in:
Cirilo Bernardo 2016-09-11 09:19:56 +10:00 committed by Wayne Stambaugh
parent 1848a87844
commit ad7302358b
1 changed files with 10 additions and 3 deletions

View File

@ -20,6 +20,13 @@ add_executable( kicad2step
target_link_libraries( kicad2step ${wxWidgets_LIBRARIES} ${LIBS_OCE} )
install( TARGETS kicad2step
DESTINATION bin
COMPONENT binary )
if( APPLE )
# puts binaries into the *.app bundle while linking
set_target_properties( kicad2step PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
)
else()
install( TARGETS kicad2step
DESTINATION ${KICAD_BIN}
COMPONENT binary )
endif()