|
@@ -28,6 +28,9 @@ SET(SOURCE_FILES cxx/pcap_processor.cpp cxx/pcap_processor.h cxx/statistics.cpp
|
|
# Add botnet comm processor source files
|
|
# Add botnet comm processor source files
|
|
SET(BOT_COMM_PROC_SOURCE cxx/botnet_comm_processor.h cxx/botnet_comm_processor.cpp)
|
|
SET(BOT_COMM_PROC_SOURCE cxx/botnet_comm_processor.h cxx/botnet_comm_processor.cpp)
|
|
|
|
|
|
|
|
+# Add the debugging source files
|
|
|
|
+SET(DEBUG_FILES cxx/main.cpp cxx/pcap_processor.cpp cxx/pcap_processor.h cxx/statistics.cpp cxx/statistics.h cxx/statistics_db.cpp cxx/statistics_db.h cxx/utilities.h cxx/utilities.cpp)
|
|
|
|
+
|
|
# Include SQLiteCpp library and build it
|
|
# Include SQLiteCpp library and build it
|
|
option(SQLITECPP_RUN_CPPLINT OFF)
|
|
option(SQLITECPP_RUN_CPPLINT OFF)
|
|
include_directories(SQLiteCpp/include)
|
|
include_directories(SQLiteCpp/include)
|
|
@@ -62,6 +65,9 @@ TARGET_LINK_LIBRARIES(pcapreader "${TINS_LIBRARY}" ${PYTHON_LIBRARIES} SQLiteCpp
|
|
ADD_LIBRARY(botnetcomm SHARED ${BOT_COMM_PROC_SOURCE})
|
|
ADD_LIBRARY(botnetcomm SHARED ${BOT_COMM_PROC_SOURCE})
|
|
TARGET_LINK_LIBRARIES(botnetcomm ${PYTHON_LIBRARIES})
|
|
TARGET_LINK_LIBRARIES(botnetcomm ${PYTHON_LIBRARIES})
|
|
|
|
|
|
|
|
+ADD_EXECUTABLE(main ${DEBUG_FILES})
|
|
|
|
+TARGET_LINK_LIBRARIES(main pcapreader ${PYTHON_LIBRARIES})
|
|
|
|
+
|
|
IF (APPLE)
|
|
IF (APPLE)
|
|
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
|
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
|
ENDIF ()
|
|
ENDIF ()
|