* Build optimizations, simplify dependancy tree * Build optimizations, simplify dependancy tree
23 lines
661 B
CMake
23 lines
661 B
CMake
file(GLOB HEADERS "include/graphene/elasticsearch/*.hpp")
|
|
|
|
add_library( graphene_elasticsearch
|
|
elasticsearch_plugin.cpp
|
|
)
|
|
|
|
target_link_libraries( graphene_elasticsearch PRIVATE graphene_plugin curl )
|
|
target_include_directories( graphene_elasticsearch
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
|
|
|
|
if(MSVC)
|
|
set_source_files_properties(elasticsearch_plugin.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
|
|
endif(MSVC)
|
|
|
|
install( TARGETS
|
|
graphene_elasticsearch
|
|
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
INSTALL( FILES ${HEADERS} DESTINATION "include/graphene/elasticsearch" )
|
|
|