Skip to content

Commit

Permalink
Update installation commands in release workflow and clean up CMakeLi…
Browse files Browse the repository at this point in the history
…sts.txt
  • Loading branch information
OmerFarukBOUN committed Dec 23, 2024
1 parent ea9971d commit f485429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
args: -DCMAKE_BUILD_TYPE=RELEASE

- name: Install the library
run: cmake --install build --prefix /usr/local
run: cmake --build . --target install --prefix /usr/local

- name: Install the library as shared
run: cmake --build . --target rvstd-shared --target install --prefix /usr/local

- name: Verify installation
run: |
Expand Down
32 changes: 0 additions & 32 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,38 +118,6 @@ install(
NAMESPACE rvstd::
)


IF(ENABLE_RVSTD_XT)
ADD_SUBDIRECTORY(xt)
ENDIF()

# Install

INCLUDE(GNUInstallDirs)

INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

INSTALL(
TARGETS rvstd
EXPORT rvstd-config
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

EXPORT(
TARGETS rvstd
NAMESPACE rvstd::
FILE "${CMAKE_CURRENT_BINARY_DIR}/rvstd-config.cmake"
)

INSTALL(
EXPORT rvstd-config
DESTINATION "${CMAKE_INSTALL_DATADIR}/rvstd/cmake"
NAMESPACE rvstd::
)

# Enable testing if requested
if(ENABLE_TESTS)
enable_testing()
Expand Down

0 comments on commit f485429

Please sign in to comment.