cmake: Support installation of libeuropa (runtime) and tools
also, might as well.
This commit is contained in:
parent
69a7b0e45e
commit
e978c975b0
4 changed files with 19 additions and 3 deletions
|
@ -27,6 +27,8 @@ include(CompilerFlags)
|
|||
|
||||
include(FetchContent)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# declare dependencies
|
||||
FetchContent_Declare(indicators
|
||||
GIT_REPOSITORY https://github.com/p-ranav/indicators.git
|
||||
|
|
|
@ -33,4 +33,10 @@ target_include_directories(europa PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
|||
target_compile_features(europa PUBLIC cxx_std_20)
|
||||
|
||||
# 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}
|
||||
)
|
|
@ -29,4 +29,8 @@ configure_file(EupakConfig.hpp.in
|
|||
target_include_directories(eupak PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_include_directories(eupak PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
europa_target(eupak)
|
||||
europa_target(eupak)
|
||||
|
||||
install(TARGETS eupak
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
|
@ -26,4 +26,8 @@ configure_file(EutexConfig.hpp.in
|
|||
target_include_directories(eutex PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_include_directories(eutex PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
europa_target(eutex)
|
||||
europa_target(eutex)
|
||||
|
||||
install(TARGETS eutex
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
Loading…
Reference in a new issue