Browse Source

add the ability to build the cpp code as an independent project

aidmar.wainakh 6 years ago
parent
commit
48c729f6db
1 changed files with 4 additions and 0 deletions
  1. 4 0
      code_boost/src/CMakeLists.txt

+ 4 - 0
code_boost/src/CMakeLists.txt

@@ -77,3 +77,7 @@ 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)
 
+# 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)
+