From 164c7a680697be72d7f42af28b89012e5c6dd53b Mon Sep 17 00:00:00 2001 From: John Hurlman Date: Tue, 6 Dec 2016 02:14:56 +0000 Subject: CMake files for binaryninjaapi and breakpoint --- CMakeLists.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..9b835d75 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,38 @@ +cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) + +add_library(binaryninjaapi STATIC + architecture.cpp + backgroundtask.cpp + basicblock.cpp + binaryninjaapi.cpp + binaryreader.cpp + binaryview.cpp + binaryviewtype.cpp + binarywriter.cpp + callingconvention.cpp + databuffer.cpp + demangle.cpp + fileaccessor.cpp + filemetadata.cpp + function.cpp + functiongraph.cpp + functiongraphblock.cpp + functionrecognizer.cpp + interaction.cpp + jsoncpp.cpp + log.cpp + lowlevelil.cpp + mainthread.cpp + platform.cpp + plugin.cpp + scriptingprovider.cpp + tempfile.cpp + transform.cpp + type.cpp + update.cpp + ) + +set_target_properties(binaryninjaapi PROPERTIES + CXX_STANDARD 11 + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin + ) -- cgit v1.3.1 From 15bbf9f7b2f9067159469c9c9bdb4183b25bc9c6 Mon Sep 17 00:00:00 2001 From: Andrew Lamoureux Date: Wed, 15 Mar 2017 23:38:36 -0400 Subject: root CMakeLists.txt references json properly --- CMakeLists.txt | 8 +++++++- Makefile | 12 ++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b835d75..a635c9f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) +project(binaryninja-api) + add_library(binaryninjaapi STATIC architecture.cpp backgroundtask.cpp @@ -19,7 +21,7 @@ add_library(binaryninjaapi STATIC functiongraphblock.cpp functionrecognizer.cpp interaction.cpp - jsoncpp.cpp + json/jsoncpp.cpp log.cpp lowlevelil.cpp mainthread.cpp @@ -32,6 +34,10 @@ add_library(binaryninjaapi STATIC update.cpp ) +set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin) + +include_directories(${PROJECT_SOURCE_DIR}) + set_target_properties(binaryninjaapi PROPERTIES CXX_STANDARD 11 ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin diff --git a/Makefile b/Makefile index 9eb2d52a..0b18c061 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ -UNAME_S := $(shell uname -s) -ifeq ($(UNAME_S),Darwin) - LIB := -L/Applications/Binary\ Ninja.app/Contents/MacOS/ -lbinaryninjacore -else - LIB := -L$(HOME)/binaryninja/ -lbinaryninjacore -endif +#UNAME_S := $(shell uname -s) +#ifeq ($(UNAME_S),Darwin) +# LIB := -L/Applications/Binary\ Ninja.app/Contents/MacOS/ -lbinaryninjacore +#else +# LIB := -L$(HOME)/binaryninja/ -lbinaryninjacore +#endif TARGETDIR := bin -- cgit v1.3.1