mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-07-02 14:04:22 +00:00
This also adds a public dependency to machinery in the header-only backend project. This is because the backend does need functionality from machinery, such as FileRecordData and TigerHash.
25 lines
458 B
CMake
25 lines
458 B
CMake
project(${bare_name}-backend-postgresql CXX)
|
|
|
|
add_library(${PROJECT_NAME} SHARED
|
|
tag.cpp
|
|
delete.cpp
|
|
#locate.cpp
|
|
scan.cpp
|
|
#dbsource.cpp
|
|
backend_postgresql.cpp
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME} SYSTEM
|
|
PUBLIC ${Boost_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE ${bare_name}-inc
|
|
PRIVATE ${bare_name}-pq
|
|
)
|
|
|
|
install(TARGETS ${PROJECT_NAME}
|
|
LIBRARY DESTINATION lib
|
|
RUNTIME DESTINATION bin
|
|
ARCHIVE DESTINATION lib/static
|
|
)
|