Browse Source

fix hardcoding install pathes (#54)

master
SergeyVolkovich99 2 years ago
committed by GitHub
parent
commit
82cfc29f7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      fs_test/CMakeLists.txt
  2. 6
      src/CMakeLists.txt

10
fs_test/CMakeLists.txt

@ -24,9 +24,9 @@ add_executable(lwext4-mbr lwext4_mbr.c)
target_link_libraries(lwext4-mbr blockdev)
target_link_libraries(lwext4-mbr lwext4)
install (TARGETS lwext4-server DESTINATION /usr/bin)
install (TARGETS lwext4-client DESTINATION /usr/bin)
install (TARGETS lwext4-generic DESTINATION /usr/bin)
install (TARGETS lwext4-mkfs DESTINATION /usr/bin)
install (TARGETS lwext4-mbr DESTINATION /usr/bin)
install (TARGETS lwext4-server DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install (TARGETS lwext4-client DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install (TARGETS lwext4-generic DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install (TARGETS lwext4-mkfs DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install (TARGETS lwext4-mbr DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

6
src/CMakeLists.txt

@ -17,6 +17,6 @@ else()
endif()
if (DEFINED INSTALL_LIB)
INSTALL(TARGETS lwext4 DESTINATION /usr/local/lib)
INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/include/. DESTINATION /usr/local/include/lwext4)
endif()
INSTALL(TARGETS lwext4 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/include/. DESTINATION ${CMAKE_INSTALL_PREFIX}/include/lwext4)
endif()

Loading…
Cancel
Save