魔幻厨房下载,elly tran ha,老婆你站住
set( cmake_install_prefix ./_install)
configure_file ( "${project_source_dir}/tutorialconfig.h.in" "${project_binary_dir}/tutorialconfig.h" )
add_executable(tutorial tutorial.c)
set(src_files avl.c rb.c splay.c) add_executable(tutorial ${src_files})
add_library(mathfunctions mysqrt.cxx)
add_library(tree shared ${src_tree_files})
add_library(tree_static static ${src_tree_files})
target_link_libraries (tutorial mathfunctions)
link_libraries(-lpthread -lm)
include (checkfunctionexists) check_function_exists (log have_log) check_function_exists (exp have_exp)
#cmakedefine have_log #cmakedefine have_exp
include_directories ("${project_binary_dir}")
target_include_directories(os_demo private ${cmake_source_dir} ${cmake_source_dir}/inc )
set(cmake_c_flags "-o3 -ffast-math -wall -std=gnu99 -fpic")
-- this is the engine cmake_current_binary_dir: /home/xxxx/engine/build.tx1
-- this is the engine project_source_dir: /home/xxxx/engine
-- this is the engine project_binary_dir: /home/xxxx/build.tx1
cmake .. -dcmake_toolchain_file=../tx1.toolchain.cmake
# this is required set(cmake_system_name linux) # specify the cross compiler set(cmake_c_compiler /opt/nvidia/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu//bin/aarch64-linux-gnu-gcc) set(cmake_cxx_compiler /opt/nvidia/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu//bin/aarch64-linux-gnu-g++) # where is the target environment set(cmake_find_root_path /opt/nvidia/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include/c++/5.3.1) # search for programs in the build host directories (not necessary) set(cmake_find_root_path_mode_program never) # for libraries and headers in the target directories set(cmake_find_root_path_mode_library only) set(cmake_find_root_path_mode_include only)
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
如何在没有core文件的情况下用dmesg+addr2line定位段错误
用QT制作3D点云显示器——QtDataVisualization
网友评论