--- CMakeLists.txt.orig 2021-04-19 19:25:22 UTC +++ CMakeLists.txt @@ -18,15 +18,15 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_S include(cmake_modules/IMPFindPython.cmake) imp_find_python() -execute_process(COMMAND ${PYTHON_EXECUTABLE} setup_git.py - RESULT_VARIABLE setup - OUTPUT_VARIABLE toutput - ERROR_VARIABLE error - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - OUTPUT_STRIP_TRAILING_WHITESPACE) -if(NOT ${setup} EQUAL 0) - message(FATAL_ERROR " Failed to run setup_git.py: ${setup}; ${error}") -endif() +#execute_process(COMMAND ${PYTHON_EXECUTABLE} setup_git.py +# RESULT_VARIABLE setup +# OUTPUT_VARIABLE toutput +# ERROR_VARIABLE error +# WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} +# OUTPUT_STRIP_TRAILING_WHITESPACE) +#if(NOT ${setup} EQUAL 0) +# message(FATAL_ERROR " Failed to run setup_git.py: ${setup}; ${error}") +#endif() # Don't deref quoted variables in if() if(POLICY CMP0054) @@ -144,14 +144,14 @@ configure_file ( "${PROJECT_BINARY_DIR}/include/RMF/config.h" ) -add_subdirectory(data) +#add_subdirectory(data) add_subdirectory(include) -add_subdirectory(src) -add_subdirectory(bin) +#add_subdirectory(src) +#add_subdirectory(bin) -add_subdirectory(plugins/vmd/) -add_subdirectory(plugins/pymol/) +#add_subdirectory(plugins/vmd/) +#add_subdirectory(plugins/pymol/) # swig support is a little broken @@ -170,10 +170,12 @@ endif() add_subdirectory(swig) +if (FREEBSD_BUILS_WITH_TESTS) add_subdirectory(test) -add_subdirectory(examples) -add_subdirectory(benchmark) -add_subdirectory(doc) +endif() +#add_subdirectory(examples) +#add_subdirectory(benchmark) +#add_subdirectory(doc) add_custom_target(RMF DEPENDS ${RMF_BINS} ${RMF_SWIG} ${RMF_TESTS} ${RMF_VMD} RMF-decorators) set_property(TARGET "RMF" PROPERTY FOLDER "RMF")