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-06 23:33:54 +00:00
|
|
|
examples/example.cpp
|
2014-08-06 01:10:18 +00:00
|
|
|
networking/etc_hosts.cpp
|
2014-08-06 01:14:32 +00:00
|
|
|
system/processes.cpp
|
2014-08-12 06:59:21 +00:00
|
|
|
system/nvram.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")
|
2014-08-12 06:59:21 +00:00
|
|
|
TARGET_LINK_LIBRARIES(osquery_tables "-fobjc-arc -fobjc-link-runtime -framework Foundation -framework IOKit -framework CoreFoundation")
|
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)
|