run_cmake_install_test.sh 731 B

12345678910111213141516171819202122232425262728
  1. rm -rf install
  2. mkdir -p install/build
  3. cd install/build
  4. cmake ../../ -DCMAKE_INSTALL_PREFIX=../pocketpy -DPK_USE_CJSON=ON -DPK_ENABLE_OS=ON
  5. cmake --build . --target install --config Release -j 8
  6. if [ -e "../pocketpy/lib/libpocketpy.so" ]; then
  7. echo "Library installed successfully."
  8. else
  9. echo "Library installation failed."
  10. exit 1
  11. fi
  12. if [ -e "../pocketpy/include/pocketpy.h" ]; then
  13. echo "Header files installed successfully."
  14. else
  15. echo "Header files installation failed."
  16. exit 1
  17. fi
  18. if [ -e "../pocketpy/share/pocketpy/pocketpy-config.cmake" ]; then
  19. echo "Config file installed successfully."
  20. else
  21. echo "Config file installation failed."
  22. exit 1
  23. fi
  24. echo "CMake install verified successfully."