diff --git a/osquery/CMakeLists.txt b/osquery/CMakeLists.txt index 2727a4e0..fe20c76c 100644 --- a/osquery/CMakeLists.txt +++ b/osquery/CMakeLists.txt @@ -193,6 +193,9 @@ endif() TARGET_LINK_LIBRARIES(osquery_shared ${OSQUERY_ADDITIONAL_LINKS}) TARGET_LINK_LIBRARIES(osquery_shared ${OSQUERY_LIBS}) SET_TARGET_PROPERTIES(osquery_shared PROPERTIES OUTPUT_NAME osquery) +INSTALL(TARGETS osquery_shared DESTINATION lib) +INSTALL(TARGETS osquery_static DESTINATION lib) +INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include) ADD_EXECUTABLE(shell main/shell.cpp) TARGET_LINK_LIBRARIES(shell osquery_shared)