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(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
|
||||||
|
|
|
@ -34,3 +34,9 @@ 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}
|
||||||
|
)
|
|
@ -30,3 +30,7 @@ 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}
|
||||||
|
)
|
|
@ -27,3 +27,7 @@ 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}
|
||||||
|
)
|
Loading…
Reference in a new issue