cmake: Support installation of libeuropa (runtime) and tools

also, might as well.
This commit is contained in:
Lily Tsuru 2025-01-17 22:31:15 -05:00
parent 69a7b0e45e
commit e978c975b0
4 changed files with 19 additions and 3 deletions

View file

@ -27,6 +27,8 @@ include(CompilerFlags)
include(FetchContent) include(FetchContent)
include(GNUInstallDirs)
# declare dependencies # declare dependencies
FetchContent_Declare(indicators FetchContent_Declare(indicators
GIT_REPOSITORY https://github.com/p-ranav/indicators.git GIT_REPOSITORY https://github.com/p-ranav/indicators.git

View file

@ -33,4 +33,10 @@ target_include_directories(europa PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_compile_features(europa PUBLIC cxx_std_20) target_compile_features(europa PUBLIC cxx_std_20)
# SOversion for *ix. # SOversion for *ix.
set_target_properties(europa PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 0) set_target_properties(europa PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 0)
install(TARGETS europa
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View file

@ -29,4 +29,8 @@ configure_file(EupakConfig.hpp.in
target_include_directories(eupak PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) target_include_directories(eupak PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(eupak PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(eupak PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
europa_target(eupak) europa_target(eupak)
install(TARGETS eupak
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View file

@ -26,4 +26,8 @@ configure_file(EutexConfig.hpp.in
target_include_directories(eutex PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) target_include_directories(eutex PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(eutex PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories(eutex PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
europa_target(eutex) europa_target(eutex)
install(TARGETS eutex
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)