|
@@ -41,6 +41,8 @@ ENDIF()
|
|
FIND_PACKAGE(PythonLibs 3.0 REQUIRED)
|
|
FIND_PACKAGE(PythonLibs 3.0 REQUIRED)
|
|
IF(PYTHONLIBS_FOUND)
|
|
IF(PYTHONLIBS_FOUND)
|
|
INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_DIRS}")
|
|
INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_DIRS}")
|
|
|
|
+ MESSAGE(STATUS "Python includes found in: " ${PYTHON_INCLUDE_DIRS} )
|
|
|
|
+ MESSAGE(STATUS "Python libs found in: " ${PYTHON_LIBRARIES} )
|
|
ELSE()
|
|
ELSE()
|
|
MESSAGE(FATAL_ERROR "Unable to find Python libraries.")
|
|
MESSAGE(FATAL_ERROR "Unable to find Python libraries.")
|
|
ENDIF()
|
|
ENDIF()
|
|
@@ -49,6 +51,7 @@ ENDIF()
|
|
FIND_PACKAGE(Boost 1.54 QUIET)
|
|
FIND_PACKAGE(Boost 1.54 QUIET)
|
|
IF (Boost_FOUND)
|
|
IF (Boost_FOUND)
|
|
INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}")
|
|
INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}")
|
|
|
|
+ MESSAGE(STATUS "Boots includes found in: " ${Boost_INCLUDE_DIRS} )
|
|
SET(Boost_USE_STATIC_LIBS OFF)
|
|
SET(Boost_USE_STATIC_LIBS OFF)
|
|
SET(Boost_USE_MULTITHREADED ON)
|
|
SET(Boost_USE_MULTITHREADED ON)
|
|
SET(Boost_USE_STATIC_RUNTIME OFF)
|
|
SET(Boost_USE_STATIC_RUNTIME OFF)
|
|
@@ -72,8 +75,5 @@ SET_target_properties(sqlite3 PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
|
ADD_LIBRARY(pcapreader SHARED ${SOURCE_FILES})
|
|
ADD_LIBRARY(pcapreader SHARED ${SOURCE_FILES})
|
|
# Libs pthread and dl are prerequisites of SQLiteCpp
|
|
# Libs pthread and dl are prerequisites of SQLiteCpp
|
|
-TARGET_LINK_LIBRARIES(pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" SQLiteCpp sqlite3 pthread dl)
|
|
+TARGET_LINK_LIBRARIES(pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" ${PYTHON_LIBRARIES} SQLiteCpp sqlite3 pthread dl)
|
|
|
|
|
|
-# 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)
|
|
|