Commit 4a9259b4 authored by Alan's avatar Alan

Added install targets

parent 9bcc42da
......@@ -50,3 +50,7 @@ set_property(TARGET heimdall-frontend
target_link_libraries(heimdall-frontend pit)
target_link_libraries(heimdall-frontend Qt5::Widgets)
target_link_libraries(heimdall-frontend z)
install (TARGETS heimdall-frontend
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
......@@ -46,3 +46,7 @@ add_executable(heimdall ${HEIMDALL_SOURCE_FILES})
target_link_libraries(heimdall PRIVATE pit)
target_link_libraries(heimdall PRIVATE ${LIBUSB_LIBRARY})
install (TARGETS heimdall
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
  • Because of Executables marked with the MACOSX_BUNDLE property are treated as BUNDLE targets on OS X. I modifieded the install statement in heimdall-frontend/CMakeLists.txt to ...

    install (TARGETS heimdall-frontend RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX}/bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

    After that the build files could be written on OS 10.13.6 / cmake 3.12.1

    I'm not familiar with cmake, so I don't know if it will work with Lunix / Windows as well.

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment