2014-08-04 18:06:45 +00:00
|
|
|
ADD_LIBRARY(osquery_filesystem
|
|
|
|
filesystem.cpp
|
|
|
|
)
|
2014-08-30 07:15:31 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
ADD_LIBRARY(osquery_filesystem_objc
|
|
|
|
plist.mm
|
|
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem_objc "-framework Foundation")
|
|
|
|
SET_TARGET_PROPERTIES(osquery_filesystem_objc PROPERTIES COMPILE_FLAGS "-x objective-c++ -fobjc-arc")
|
|
|
|
endif()
|
|
|
|
|
2014-08-04 18:06:45 +00:00
|
|
|
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)
|
2014-08-30 07:15:31 +00:00
|
|
|
TARGET_LINK_LIBRARIES(osquery_filesystem osquery_filesystem_objc)
|
2014-08-13 04:30:30 +00:00
|
|
|
endif()
|
2014-08-30 07:15:31 +00:00
|
|
|
SET_TARGET_PROPERTIES(osquery_filesystem PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
|
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-30 07:15:31 +00:00
|
|
|
SET_TARGET_PROPERTIES(filesystem_tests PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
|
2014-09-02 18:08:49 +00:00
|
|
|
ADD_TEST(filesystem_tests filesystem_tests)
|
2014-08-13 04:30:30 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
2014-08-30 07:15:31 +00:00
|
|
|
ADD_EXECUTABLE(plist_tests plist_tests.cpp)
|
|
|
|
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)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_tests osquery_filesystem_objc)
|
|
|
|
SET_TARGET_PROPERTIES(plist_tests PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
|
2014-09-02 18:08:49 +00:00
|
|
|
ADD_TEST(plist_tests plist_tests)
|
2014-08-30 07:15:31 +00:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(plist_benchmark plist_benchmark.cpp)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_benchmark glog)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_benchmark gtest)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_benchmark osquery_core)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_benchmark osquery_filesystem)
|
|
|
|
TARGET_LINK_LIBRARIES(plist_benchmark osquery_filesystem_objc)
|
|
|
|
SET_TARGET_PROPERTIES(plist_benchmark PROPERTIES COMPILE_FLAGS "-std=c++11 -stdlib=libc++")
|
2014-08-13 04:30:30 +00:00
|
|
|
endif()
|