mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-20 15:40:50 +00:00
27 lines
513 B
CMake
27 lines
513 B
CMake
project(${bare_name}-pq CXX)
|
|
|
|
add_library(${PROJECT_NAME} STATIC
|
|
connection.cpp
|
|
databaseexception.cpp
|
|
resultset.cpp
|
|
pq_type_helpers.cpp
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PRIVATE ${libpqtypes_INCLUDE_DIRS}
|
|
)
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE ${bare_name}-if
|
|
PRIVATE pqtypes
|
|
)
|
|
|
|
target_compile_features(${PROJECT_NAME}
|
|
PUBLIC cxx_constexpr
|
|
PUBLIC cxx_alignof
|
|
)
|
|
|
|
#install(TARGETS ${PROJECT_NAME}
|
|
# LIBRARY DESTINATION lib
|
|
# RUNTIME DESTINATION bin
|
|
# ARCHIVE DESTINATION lib/static
|
|
#)
|