Build parseThat binary using cmake.
Signed-off-by: Peter Foley <pefoley2@xxxxxxxxxxx>
---
I'm less sure if it makes sense to install this or not, it seems that the primary (and possibly only) user is the testsuite.
CMakeLists.txt | 1 +
parseThat/CMakeLists.txt | 4 ++++
2 files changed, 5 insertions(+)
create mode 100644 parseThat/CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2fd1521..85212d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -80,6 +80,7 @@ add_subdirectory (patchAPI)
if(${SYMREADER} MATCHES symtabAPI)
add_subdirectory (dyninstAPI)
endif()
+add_subdirectory (parseThat)
# Build the RT library as a seperate project so we can change compilers
message(STATUS "Configuring DyninstAPI_RT")
diff --git a/parseThat/CMakeLists.txt b/parseThat/CMakeLists.txt
new file mode 100644
index 0000000..11a9f59
--- /dev/null
+++ b/parseThat/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_executable(parseThat src/parseThat.C src/config.C src/ipc.C src/record.C src/strlist.C src/reglist.C src/log.C src/utils.C src/sha1.C src/dyninstCore.C src/dyninstCompat.v5.C)
+add_definitions(-DHAVE_BPATCH_PROCESS_H)
+target_link_private_libraries(parseThat dyninstAPI)
+install(TARGETS parseThat RUNTIME DESTINATION bin)
--
2.8.2
|