标签:nmp 设置 rect androi pack package set directory and
1、openmp加载,cmake3.9之后内置了openmp
find_package(OpenMP) if (OPENMP_FOUND OR OpenMP_CXX_FOUND) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") endif()
2、引用的c++11不同会引发编译错误
可通过ANDROID_STL设置
-DANDROID_STL="gnustl_static" 或 -DANDROID_STL="c++_static"
3、可设置输出路径,ARCHIVE_OUTPUT_DIRECTORY表征静态库路径,LIBRARY_OUTPUT_DIRECTORY为动态库路径
set_target_properties( smaple PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "./out/${ANDROID_ABI}" )
4、
标签:nmp 设置 rect androi pack package set directory and
原文地址:https://www.cnblogs.com/zl1991/p/9454984.html