Cmake备忘录
123
include_directories( /PATH/TO/JDK/include)
其他头文件同理例:
12345678
cmake_minimum_required(VERSION 3.14)project(JNI)set(CMAKE_CXX_STANDARD 14)include_directories( /usr/local/graalvm/19.1.1/include)add_library(JNI SHARED library.cpp JNI.h)
1
set (CMAKE_SHARED_LINKER_FLAGS "-lpthread")