Commit b97ef72a by songxinkai

boost python

parent 0757bd84
cmake_minimum_required(VERSION 3.14)
project(hello)
# headers
set(PYTHON_INCLUDE_DIRS /home/songxinkai/anaconda3/include/python3.7m)
set(PYTHON_LIBRARIES /home/songxinkai/anaconda3/lib/libpython3.7m.so)
# libraries
set(Boost_INCLUDE_DIRS /home/songxinkai/Boost_1.72.0/include)
set(Boost_LIBRARIES /home/songxinkai/Boost_1.72.0/lib/libboost_python37.so)
# cpp codes
file(GLOB_RECURSE python_srcs ${PROJECT_SOURCE_DIR}/*.cpp)
# compile
add_library(pyhello SHARED ${python_srcs})
set_target_properties(pyhello PROPERTIES PREFIX "" OUTPUT_NAME "_hello")
include_directories(${PYTHON_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
target_link_libraries(pyhello ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
set(CMAKE_C_COMPILER "/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "4.8.5")
set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "90")
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert")
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
set(CMAKE_C_PLATFORM_ID "Linux")
set(CMAKE_C_SIMULATE_ID "")
set(CMAKE_C_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCC 1)
set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_C_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_C_COMPILER_ENV_VAR "CC")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_C_COMPILER_ID_RUN 1)
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_C_LINKER_PREFERENCE 10)
# Save compiler ABI information.
set(CMAKE_C_SIZEOF_DATA_PTR "8")
set(CMAKE_C_COMPILER_ABI "ELF")
set(CMAKE_C_LIBRARY_ARCHITECTURE "")
if(CMAKE_C_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_C_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
endif()
if(CMAKE_C_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "")
endif()
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include;/usr/local/include;/usr/include")
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-redhat-linux/4.8.5;/usr/lib64;/lib64;/usr/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "4.8.5")
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "98")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14")
set(CMAKE_CXX17_COMPILE_FEATURES "")
set(CMAKE_CXX20_COMPILE_FEATURES "")
set(CMAKE_CXX_PLATFORM_ID "Linux")
set(CMAKE_CXX_SIMULATE_ID "")
set(CMAKE_CXX_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_CXX_COMPILER_LOADED 1)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_CXX_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP)
set(CMAKE_CXX_LINKER_PREFERENCE 30)
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
set(CMAKE_CXX_COMPILER_ABI "ELF")
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
if(CMAKE_CXX_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_CXX_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
endif()
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/4.8.5;/usr/include/c++/4.8.5/x86_64-redhat-linux;/usr/include/c++/4.8.5/backward;/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include;/usr/local/include;/usr/include")
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-redhat-linux/4.8.5;/usr/lib64;/lib64;/usr/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_HOST_SYSTEM "Linux-3.10.0-1062.4.3.el7.x86_64")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "3.10.0-1062.4.3.el7.x86_64")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-3.10.0-1062.4.3.el7.x86_64")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "3.10.0-1062.4.3.el7.x86_64")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/songxinkai/mytests/boost/python")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/songxinkai/mytests/boost/python/build")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"../CMakeLists.txt"
"CMakeFiles/3.14.6/CMakeCCompiler.cmake"
"CMakeFiles/3.14.6/CMakeCXXCompiler.cmake"
"CMakeFiles/3.14.6/CMakeSystem.cmake"
"CMakeFiles/feature_tests.c"
"CMakeFiles/feature_tests.cxx"
"/usr/share/cmake3/Modules/CMakeCCompiler.cmake.in"
"/usr/share/cmake3/Modules/CMakeCCompilerABI.c"
"/usr/share/cmake3/Modules/CMakeCInformation.cmake"
"/usr/share/cmake3/Modules/CMakeCXXCompiler.cmake.in"
"/usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp"
"/usr/share/cmake3/Modules/CMakeCXXInformation.cmake"
"/usr/share/cmake3/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake"
"/usr/share/cmake3/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/share/cmake3/Modules/CMakeCompilerIdDetection.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineCCompiler.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineCXXCompiler.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineCompileFeatures.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineCompiler.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineCompilerId.cmake"
"/usr/share/cmake3/Modules/CMakeDetermineSystem.cmake"
"/usr/share/cmake3/Modules/CMakeFindBinUtils.cmake"
"/usr/share/cmake3/Modules/CMakeGenericSystem.cmake"
"/usr/share/cmake3/Modules/CMakeInitializeConfigs.cmake"
"/usr/share/cmake3/Modules/CMakeLanguageInformation.cmake"
"/usr/share/cmake3/Modules/CMakeParseImplicitIncludeInfo.cmake"
"/usr/share/cmake3/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/share/cmake3/Modules/CMakeSystem.cmake.in"
"/usr/share/cmake3/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/share/cmake3/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/share/cmake3/Modules/CMakeTestCCompiler.cmake"
"/usr/share/cmake3/Modules/CMakeTestCXXCompiler.cmake"
"/usr/share/cmake3/Modules/CMakeTestCompilerCommon.cmake"
"/usr/share/cmake3/Modules/CMakeUnixFindMake.cmake"
"/usr/share/cmake3/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/usr/share/cmake3/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/usr/share/cmake3/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-C-FeatureTests.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-C.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-CXX-FeatureTests.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-CXX.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU-FindBinUtils.cmake"
"/usr/share/cmake3/Modules/Compiler/GNU.cmake"
"/usr/share/cmake3/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/usr/share/cmake3/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
"/usr/share/cmake3/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/MIPSpro-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/TI-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
"/usr/share/cmake3/Modules/Internal/CMakeCheckCompilerFlag.cmake"
"/usr/share/cmake3/Modules/Internal/FeatureTesting.cmake"
"/usr/share/cmake3/Modules/Platform/Linux-Determine-CXX.cmake"
"/usr/share/cmake3/Modules/Platform/Linux-GNU-C.cmake"
"/usr/share/cmake3/Modules/Platform/Linux-GNU-CXX.cmake"
"/usr/share/cmake3/Modules/Platform/Linux-GNU.cmake"
"/usr/share/cmake3/Modules/Platform/Linux.cmake"
"/usr/share/cmake3/Modules/Platform/UnixPaths.cmake"
)
# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.14.6/CMakeSystem.cmake"
"CMakeFiles/3.14.6/CMakeCCompiler.cmake"
"CMakeFiles/3.14.6/CMakeCXXCompiler.cmake"
"CMakeFiles/3.14.6/CMakeCCompiler.cmake"
"CMakeFiles/3.14.6/CMakeCXXCompiler.cmake"
"CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/pyhello.dir/DependInfo.cmake"
)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# The main recursive all target
all:
.PHONY : all
# The main recursive preinstall target
preinstall:
.PHONY : preinstall
# The main recursive clean target
clean:
.PHONY : clean
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake3
# The command to remove a file.
RM = /usr/bin/cmake3 -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/songxinkai/mytests/boost/python
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/songxinkai/mytests/boost/python/build
#=============================================================================
# Target rules for target CMakeFiles/pyhello.dir
# All Build rule for target.
CMakeFiles/pyhello.dir/all:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/depend
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=1,2,3 "Built target pyhello"
.PHONY : CMakeFiles/pyhello.dir/all
# Include target in all.
all: CMakeFiles/pyhello.dir/all
.PHONY : all
# Build rule for subdir invocation for target.
CMakeFiles/pyhello.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 3
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/pyhello.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 0
.PHONY : CMakeFiles/pyhello.dir/rule
# Convenience name for target.
pyhello: CMakeFiles/pyhello.dir/rule
.PHONY : pyhello
# clean rule for target.
CMakeFiles/pyhello.dir/clean:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/clean
.PHONY : CMakeFiles/pyhello.dir/clean
# clean rule for target.
clean: CMakeFiles/pyhello.dir/clean
.PHONY : clean
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
/home/songxinkai/mytests/boost/python/build/CMakeFiles/rebuild_cache.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/edit_cache.dir
/home/songxinkai/mytests/boost/python/build/CMakeFiles/pyhello.dir
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
const char features[] = {"\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304
"1"
#else
"0"
#endif
"c_function_prototypes\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
"1"
#else
"0"
#endif
"c_restrict\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L
"1"
#else
"0"
#endif
"c_static_assert\n"
"C_FEATURE:"
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
"1"
#else
"0"
#endif
"c_variadic_macros\n"
};
int main(int argc, char** argv) { (void)argv; return features[argc]; }
This source diff could not be displayed because it is too large. You can view the blob instead.
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/songxinkai/mytests/boost/python/build/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp" "/home/songxinkai/mytests/boost/python/build/CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o"
"/home/songxinkai/mytests/boost/python/hello.cpp" "/home/songxinkai/mytests/boost/python/build/CMakeFiles/pyhello.dir/hello.cpp.o"
)
set(CMAKE_CXX_COMPILER_ID "GNU")
# Preprocessor definitions for this target.
set(CMAKE_TARGET_DEFINITIONS_CXX
"pyhello_EXPORTS"
)
# The include file search paths:
set(CMAKE_CXX_TARGET_INCLUDE_PATH
"/home/songxinkai/anaconda3/include/python3.7m"
"/home/songxinkai/Boost_1.72.0/include"
)
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake3
# The command to remove a file.
RM = /usr/bin/cmake3 -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/songxinkai/mytests/boost/python
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/songxinkai/mytests/boost/python/build
# Include any dependencies generated for this target.
include CMakeFiles/pyhello.dir/depend.make
# Include the progress variables for this target.
include CMakeFiles/pyhello.dir/progress.make
# Include the compile flags for this target's objects.
include CMakeFiles/pyhello.dir/flags.make
CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o: CMakeFiles/pyhello.dir/flags.make
CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o -c /home/songxinkai/mytests/boost/python/build/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp
CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/songxinkai/mytests/boost/python/build/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp > CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/songxinkai/mytests/boost/python/build/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp -o CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
CMakeFiles/pyhello.dir/hello.cpp.o: CMakeFiles/pyhello.dir/flags.make
CMakeFiles/pyhello.dir/hello.cpp.o: ../hello.cpp
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/pyhello.dir/hello.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/pyhello.dir/hello.cpp.o -c /home/songxinkai/mytests/boost/python/hello.cpp
CMakeFiles/pyhello.dir/hello.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/pyhello.dir/hello.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/songxinkai/mytests/boost/python/hello.cpp > CMakeFiles/pyhello.dir/hello.cpp.i
CMakeFiles/pyhello.dir/hello.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/pyhello.dir/hello.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/songxinkai/mytests/boost/python/hello.cpp -o CMakeFiles/pyhello.dir/hello.cpp.s
# Object files for target pyhello
pyhello_OBJECTS = \
"CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o" \
"CMakeFiles/pyhello.dir/hello.cpp.o"
# External object files for target pyhello
pyhello_EXTERNAL_OBJECTS =
_hello.so: CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
_hello.so: CMakeFiles/pyhello.dir/hello.cpp.o
_hello.so: CMakeFiles/pyhello.dir/build.make
_hello.so: /home/songxinkai/anaconda3/lib/libpython3.7m.so
_hello.so: /home/songxinkai/Boost_1.72.0/lib/libboost_python37.so
_hello.so: CMakeFiles/pyhello.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/songxinkai/mytests/boost/python/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking CXX shared library _hello.so"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/pyhello.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
CMakeFiles/pyhello.dir/build: _hello.so
.PHONY : CMakeFiles/pyhello.dir/build
CMakeFiles/pyhello.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/pyhello.dir/cmake_clean.cmake
.PHONY : CMakeFiles/pyhello.dir/clean
CMakeFiles/pyhello.dir/depend:
cd /home/songxinkai/mytests/boost/python/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/songxinkai/mytests/boost/python /home/songxinkai/mytests/boost/python /home/songxinkai/mytests/boost/python/build /home/songxinkai/mytests/boost/python/build /home/songxinkai/mytests/boost/python/build/CMakeFiles/pyhello.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/pyhello.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o"
"CMakeFiles/pyhello.dir/hello.cpp.o"
"_hello.pdb"
"_hello.so"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/pyhello.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
This source diff could not be displayed because it is too large. You can view the blob instead.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
# compile CXX with /usr/bin/c++
CXX_FLAGS = -fPIC
CXX_DEFINES = -Dpyhello_EXPORTS
CXX_INCLUDES = -I/home/songxinkai/anaconda3/include/python3.7m -I/home/songxinkai/Boost_1.72.0/include
/usr/bin/c++ -fPIC -shared -Wl,-soname,_hello.so -o _hello.so CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o CMakeFiles/pyhello.dir/hello.cpp.o -Wl,-rpath,/home/songxinkai/anaconda3/lib:/home/songxinkai/Boost_1.72.0/lib /home/songxinkai/anaconda3/lib/libpython3.7m.so /home/songxinkai/Boost_1.72.0/lib/libboost_python37.so
CMAKE_PROGRESS_1 = 1
CMAKE_PROGRESS_2 = 2
CMAKE_PROGRESS_3 = 3
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.14
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake3
# The command to remove a file.
RM = /usr/bin/cmake3 -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/songxinkai/mytests/boost/python
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/songxinkai/mytests/boost/python/build
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake3 -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
/usr/bin/ccmake3 -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles /home/songxinkai/mytests/boost/python/build/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/songxinkai/mytests/boost/python/build/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named pyhello
# Build rule for target.
pyhello: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 pyhello
.PHONY : pyhello
# fast build rule for target.
pyhello/fast:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/build
.PHONY : pyhello/fast
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.o: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.o
# target to build an object file
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.o
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.i: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.i
# target to preprocess a source file
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.i
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.s: CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.s
# target to generate assembly for a file
CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
.PHONY : CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.cpp.s
hello.o: hello.cpp.o
.PHONY : hello.o
# target to build an object file
hello.cpp.o:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/hello.cpp.o
.PHONY : hello.cpp.o
hello.i: hello.cpp.i
.PHONY : hello.i
# target to preprocess a source file
hello.cpp.i:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/hello.cpp.i
.PHONY : hello.cpp.i
hello.s: hello.cpp.s
.PHONY : hello.s
# target to generate assembly for a file
hello.cpp.s:
$(MAKE) -f CMakeFiles/pyhello.dir/build.make CMakeFiles/pyhello.dir/hello.cpp.s
.PHONY : hello.cpp.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... rebuild_cache"
@echo "... edit_cache"
@echo "... pyhello"
@echo "... CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.o"
@echo "... CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.i"
@echo "... CMakeFiles/3.14.6/CompilerIdCXX/CMakeCXXCompilerId.s"
@echo "... hello.o"
@echo "... hello.i"
@echo "... hello.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
# Install script for directory: /home/songxinkai/mytests/boost/python
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()
# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "0")
endif()
# Is this installation the result of a crosscompile?
if(NOT DEFINED CMAKE_CROSSCOMPILING)
set(CMAKE_CROSSCOMPILING "FALSE")
endif()
if(CMAKE_INSTALL_COMPONENT)
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
else()
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "/home/songxinkai/mytests/boost/python/build/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
message("Enter FindBoost.cmake")
FIND_PATH(BOOST_INCLUDE_DIR NAMES boost/python.hpp PATHS /home/songxinkai/Boost_1.72.0/include)
message("BOOST_INCLUDE_DIR: ${BOOST_INCLUDE_DIR}")
FIND_LIBRARY(BOOST_LIBRARY NAMES libboost_python37.a PATHS /home/songxinkai/Boost_1.72.0/lib)
message("BOOST_LIBRARY: ${BOOST_LIBRARY}")
if(BOOST_INCLUDE_DIR AND BOOST_LIBRARY)
set(BOOST_FOUND TRUE)
endif(BOOST_INCLUDE_DIR AND BOOST_LIBRARY)
#include <boost/python.hpp>
using namespace boost::python;
const char* Greet()
{
return "hello, world";
}
int Add(int i, int j) {
return i+j;
}
BOOST_PYTHON_MODULE(_hello) {
scope().attr("__doc__") = "boost.python example plugin";
def("greet", Greet);
def("add", &Add, "A function which adds two numbers");
}
cmake-demo @ 1620a9db
Subproject commit 1620a9db94aef83c036d7088d1002becddcb7fb0
#!/home/songxinkai/anaconda3/bin/python
from contextlib import contextmanager
class cls0:
def __init__(self):
self.f = -1
def __enter__(self):
print ("enter")
self.f = 2
return self
def __exit__(self, exc_type, exc_value, traceback):
print ("exit")
return True
if __name__ == "__main__":
with cls0() as t:
print (t.f)
#!/home/songxinkai/anaconda3/bin/python
import math
while True:
try:
text = input('> ')
if text[0] == 'q':
break
x = float(text)
y = 1 / math.log10(x)
print ("1 / log10({0}) = {1}".format(x, y))
except ValueError:
print ("the value must be greater than 0")
except ZeroDivisionError:
print ("the value must not be 1")
except Exception:
print ("unexpected error")
else:
print ("success ", end="\n")
finally:
print ("next ", end=" ")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment