project(XgboostTextMatch)

SET(XgboostTextMatch_SRC JniTest.cpp LibForJni.cpp Session.cpp ../LibSimiSent.cpp ../CEditDistance.cpp ../CScipyDistance.cpp ../DataFrame.cpp ../CSimiSentPredictor.cpp)

#SET(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fpermissive -m64 -Wl,--no-as-needed -O3 -march=native")

INCLUDE_DIRECTORIES("/path/to/mkl/include")
INCLUDE_DIRECTORIES("./")
INCLUDE_DIRECTORIES("../")
INCLUDE_DIRECTORIES(../xgboost/include)
INCLUDE_DIRECTORIES(../xgboost/rabit/include)
INCLUDE_DIRECTORIES(../eigen)
INCLUDE_DIRECTORIES(../cppjieba)
LINK_DIRECTORIES("/path/to/xgboost/so_file/")
LINK_DIRECTORIES("/path/to/mkl/so_file/")
add_library(XgboostTextMatch SHARED ${XgboostTextMatch_SRC})


target_link_libraries(XgboostTextMatch libxgboost.so m.so dl.so pthread.so libmkl_rt.so)

SET(LIBRARY_OUTPUT_PATH "../../xgboost_model/")