summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt8
-rw-r--r--Makefile12
2 files changed, 13 insertions, 7 deletions
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