2014-08-13 04:30:30 +00:00
|
|
|
if(APPLE)
|
|
|
|
ADD_LIBRARY(osquery_filesystem_osx
|
|
|
|
plist.mm
|
|
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem_osx boost_program_options)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem_osx glog)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem_osx "-fobjc-arc -fobjc-link-runtime -framework Foundation")
|
|
|
|
endif()
|
|
|
|
|
2014-08-04 18:06:45 +00:00
|
|
|
ADD_LIBRARY(osquery_filesystem
|
|
|
|
filesystem.cpp
|
|
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem boost_filesystem)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem boost_system)
|
2014-08-13 04:30:30 +00:00
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem boost_program_options)
|
2014-08-04 18:06:45 +00:00
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem boost_thread-mt)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem gflags)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem glog)
|
2014-08-13 04:30:30 +00:00
|
|
|
if(APPLE)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem osquery_filesystem_osx)
|
|
|
|
endif()
|
2014-08-04 18:06:45 +00:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(filesystem_tests filesystem_tests.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(filesystem_tests gtest)
|
|
|
|
TARGET_LINK_LIBRARIES(filesystem_tests osquery_filesystem)
|
2014-08-13 04:30:30 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
ADD_EXECUTABLE(plist_tests plist_tests.mm)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_tests glog)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_tests gtest)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_tests osquery_core)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_tests osquery_filesystem)
|
|
|
|
endif()
|