mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-21 15:50:50 +00:00
Create intermediate backend lib to help loading backend plugins.
This commit is contained in:
parent
1fd51f75ba
commit
064fc0cf1a
11 changed files with 429 additions and 4 deletions
28
src/backends/CMakeLists.txt
Normal file
28
src/backends/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
project(${bare_name}-backend CXX)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC
|
||||
backend_loader.cpp
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC ${DINDEXER_PUB_INCLUDE_DIR}
|
||||
)
|
||||
target_include_directories(${PROJECT_NAME} SYSTEM
|
||||
PUBLIC ${YAMLCPP_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE ${bare_name}-if
|
||||
PUBLIC ${YAMLCPP_LIBRARY}
|
||||
PUBLIC dl
|
||||
)
|
||||
|
||||
#install(TARGETS ${PROJECT_NAME}
|
||||
# LIBRARY DESTINATION lib
|
||||
# RUNTIME DESTINATION bin
|
||||
# ARCHIVE DESTINATION lib/static
|
||||
#)
|
||||
|
||||
add_subdirectory(postgresql)
|
||||
|
||||
add_dependencies(${PROJECT_NAME} ${bare_name}-backend-postgresql)
|
Loading…
Add table
Add a link
Reference in a new issue