1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# # # # include(${PROJECT_SOURCE_DIR}/pch.txt) set (remote_src pyapi.cpp ) add_library(remote STATIC ${remote_src} ${PROJECT_BINARY_DIR}/all.h.pch ) set_source_files_properties( pyapi.cpp PROPERTIES COMPILE_FLAGS "-fPIC -include ${PROJECT_BINARY_DIR}/all.h -include ${PYTHON_INCLUDES} -DENABLE_PYTHON" )