osquery-1/osquery/core/CMakeLists.txt
2014-08-30 00:22:26 -07:00

40 lines
1.6 KiB
CMake

ADD_LIBRARY(osquery_core
init_osquery.cpp
sqlite_util.cpp
system.cpp
test_util.cpp
text.cpp
)
TARGET_LINK_LIBRARIES(osquery_core gflags)
TARGET_LINK_LIBRARIES(osquery_core glog)
TARGET_LINK_LIBRARIES(osquery_core gtest)
TARGET_LINK_LIBRARIES(osquery_core osquery_database)
TARGET_LINK_LIBRARIES(osquery_core osquery_filesystem)
TARGET_LINK_LIBRARIES(osquery_core osquery_sqlite)
TARGET_LINK_LIBRARIES(osquery_core osquery_tables)
SET_TARGET_PROPERTIES(osquery_core PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
ADD_EXECUTABLE(status_tests status_tests.cpp)
TARGET_LINK_LIBRARIES(status_tests gtest)
SET_TARGET_PROPERTIES(status_tests PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
ADD_EXECUTABLE(sqlite_util_tests sqlite_util_tests.cpp)
TARGET_LINK_LIBRARIES(sqlite_util_tests gtest)
TARGET_LINK_LIBRARIES(sqlite_util_tests osquery_core)
TARGET_LINK_LIBRARIES(sqlite_util_tests osquery_database)
TARGET_LINK_LIBRARIES(sqlite_util_tests osquery_sqlite)
SET_TARGET_PROPERTIES(sqlite_util_tests PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
ADD_EXECUTABLE(test_util_tests test_util_tests.cpp)
TARGET_LINK_LIBRARIES(test_util_tests gtest)
TARGET_LINK_LIBRARIES(test_util_tests glog)
TARGET_LINK_LIBRARIES(test_util_tests osquery_core)
TARGET_LINK_LIBRARIES(test_util_tests osquery_sqlite)
SET_TARGET_PROPERTIES(test_util_tests PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
ADD_EXECUTABLE(text_tests text_tests.cpp)
TARGET_LINK_LIBRARIES(text_tests gtest)
TARGET_LINK_LIBRARIES(text_tests glog)
TARGET_LINK_LIBRARIES(text_tests osquery_core)
SET_TARGET_PROPERTIES(text_tests PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")