Explorar o código

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

aidmar.wainakh %!s(int64=6) %!d(string=hai) anos
pai
achega
48c729f6db
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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)
+