osquery-1/osquery/tables/CMakeLists.txt

58 lines
2.1 KiB
CMake
Raw Normal View History

2014-08-05 09:21:24 +00:00
FILE(GLOB table_sources
"generated/*.cpp"
"manual/*.cpp"
2014-08-05 09:21:24 +00:00
)
2014-07-31 00:35:19 +00:00
ADD_LIBRARY(osquery_tables
2014-08-05 08:21:28 +00:00
registry.cpp
2014-08-05 09:21:24 +00:00
${table_sources}
examples/example.cpp
networking/etc_hosts.cpp
system/kextstat.cpp
system/processes.cpp
system/nvram.cpp
2014-08-14 06:20:58 +00:00
../core/osx/NSProcessInfo+PECocoaBackports.mm
system/osx_version.mm
system/firewall.cpp
system/apps.cpp
system/launchd.cpp
2014-07-31 00:35:19 +00:00
)
TARGET_LINK_LIBRARIES(osquery_tables boost_filesystem)
2014-08-04 21:12:06 +00:00
TARGET_LINK_LIBRARIES(osquery_tables glog)
TARGET_LINK_LIBRARIES(osquery_tables osquery_filesystem)
2014-07-31 00:35:19 +00:00
TARGET_LINK_LIBRARIES(osquery_tables osquery_sqlite)
2014-08-05 08:21:28 +00:00
TARGET_LINK_LIBRARIES(osquery_tables "-Wl,-all_load")
TARGET_LINK_LIBRARIES(osquery_tables "-fobjc-arc -fobjc-link-runtime -framework Foundation -framework IOKit -framework CoreFoundation")
ADD_EXECUTABLE(etc_hosts_tests networking/etc_hosts_tests.cpp)
TARGET_LINK_LIBRARIES(etc_hosts_tests gtest)
TARGET_LINK_LIBRARIES(etc_hosts_tests glog)
TARGET_LINK_LIBRARIES(etc_hosts_tests osquery_core)
2014-08-07 20:14:06 +00:00
TARGET_LINK_LIBRARIES(etc_hosts_tests osquery_database)
2014-08-04 21:12:06 +00:00
TARGET_LINK_LIBRARIES(etc_hosts_tests osquery_filesystem)
TARGET_LINK_LIBRARIES(etc_hosts_tests osquery_tables)
ADD_EXECUTABLE(firewall_tests system/firewall_tests.cpp)
TARGET_LINK_LIBRARIES(firewall_tests gtest)
TARGET_LINK_LIBRARIES(firewall_tests glog)
TARGET_LINK_LIBRARIES(firewall_tests osquery_core)
TARGET_LINK_LIBRARIES(firewall_tests osquery_database)
TARGET_LINK_LIBRARIES(firewall_tests osquery_filesystem)
TARGET_LINK_LIBRARIES(firewall_tests osquery_tables)
ADD_EXECUTABLE(apps_tests system/apps_tests.cpp)
TARGET_LINK_LIBRARIES(apps_tests gtest)
TARGET_LINK_LIBRARIES(apps_tests glog)
TARGET_LINK_LIBRARIES(apps_tests osquery_core)
TARGET_LINK_LIBRARIES(apps_tests osquery_database)
TARGET_LINK_LIBRARIES(apps_tests osquery_filesystem)
TARGET_LINK_LIBRARIES(apps_tests osquery_tables)
ADD_EXECUTABLE(launchd_tests system/launchd_tests.cpp)
TARGET_LINK_LIBRARIES(launchd_tests gtest)
TARGET_LINK_LIBRARIES(launchd_tests glog)
TARGET_LINK_LIBRARIES(launchd_tests osquery_core)
TARGET_LINK_LIBRARIES(launchd_tests osquery_database)
TARGET_LINK_LIBRARIES(launchd_tests osquery_filesystem)
TARGET_LINK_LIBRARIES(launchd_tests osquery_tables)