2014-08-05 09:21:24 +00:00
|
|
|
FILE(GLOB table_sources
|
|
|
|
"generated/*.cpp"
|
2014-08-05 17:52:19 +00:00
|
|
|
"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}
|
2014-08-20 20:27:41 +00:00
|
|
|
networking/utils.cpp
|
2014-08-06 01:10:18 +00:00
|
|
|
networking/etc_hosts.cpp
|
2014-08-19 08:41:34 +00:00
|
|
|
networking/listening_ports.cpp
|
2014-08-20 04:24:03 +00:00
|
|
|
networking/routes.cpp
|
2014-08-20 20:27:41 +00:00
|
|
|
networking/interfaces.cpp
|
2014-08-08 20:59:57 +00:00
|
|
|
system/kextstat.cpp
|
2014-08-06 01:14:32 +00:00
|
|
|
system/processes.cpp
|
2014-08-12 06:59:21 +00:00
|
|
|
system/nvram.cpp
|
2014-08-14 06:20:58 +00:00
|
|
|
../core/osx/NSProcessInfo+PECocoaBackports.mm
|
2014-08-13 07:10:46 +00:00
|
|
|
system/osx_version.mm
|
2014-08-13 20:44:28 +00:00
|
|
|
system/firewall.cpp
|
2014-08-14 21:40:23 +00:00
|
|
|
system/apps.cpp
|
2014-08-14 23:24:28 +00:00
|
|
|
system/launchd.cpp
|
2014-08-17 08:44:22 +00:00
|
|
|
system/cacerts.cpp
|
2014-07-31 00:35:19 +00:00
|
|
|
)
|
2014-08-17 08:44:22 +00:00
|
|
|
|
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")
|
2014-08-17 08:44:22 +00:00
|
|
|
TARGET_LINK_LIBRARIES(osquery_tables "-fobjc-arc -fobjc-link-runtime -framework Foundation -framework IOKit -framework CoreFoundation -framework Security")
|
2014-08-02 03:46:22 +00:00
|
|
|
|
2014-08-06 01:10:18 +00:00
|
|
|
ADD_EXECUTABLE(etc_hosts_tests networking/etc_hosts_tests.cpp)
|
2014-08-02 03:46:22 +00:00
|
|
|
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)
|
2014-08-02 03:46:22 +00:00
|
|
|
TARGET_LINK_LIBRARIES(etc_hosts_tests osquery_tables)
|
2014-08-13 20:44:28 +00:00
|
|
|
|
|
|
|
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)
|
2014-08-14 21:40:23 +00:00
|
|
|
|
|
|
|
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)
|
2014-08-14 23:24:28 +00:00
|
|
|
|
|
|
|
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)
|
2014-08-17 08:44:22 +00:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(cacerts_tests system/cacerts_tests.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(cacerts_tests gtest)
|
|
|
|
TARGET_LINK_LIBRARIES(cacerts_tests glog)
|
|
|
|
TARGET_LINK_LIBRARIES(cacerts_tests osquery_core)
|
|
|
|
TARGET_LINK_LIBRARIES(cacerts_tests osquery_database)
|
|
|
|
TARGET_LINK_LIBRARIES(cacerts_tests osquery_filesystem)
|
|
|
|
TARGET_LINK_LIBRARIES(cacerts_tests osquery_tables)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_tables "-framework CoreFoundation -framework Security")
|