|
@@ -77,6 +77,10 @@ ADD_LIBRARY(pcapreader SHARED ${SOURCE_FILES})
|
|
|
# Libs pthread and dl are prerequisites of SQLiteCpp
|
|
|
TARGET_LINK_LIBRARIES(pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" ${PYTHON_LIBRARIES} SQLiteCpp sqlite3 pthread dl)
|
|
|
|
|
|
+IF (APPLE)
|
|
|
+ SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
|
|
+ENDIF ()
|
|
|
+
|
|
|
# comment this out to build executable (for development)
|
|
|
#ADD_EXECUTABLE(cpp-pcapreader ${SOURCE_FILES})
|
|
|
#TARGET_LINK_LIBRARIES(cpp-pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" SQLiteCpp sqlite3 pthread dl)
|