Skip to content

Instantly share code, notes, and snippets.

@doevelopper
Created November 20, 2023 16:19
Show Gist options
  • Save doevelopper/e161bb58712dea5ff3d61ea31d4f3d92 to your computer and use it in GitHub Desktop.
Save doevelopper/e161bb58712dea5ff3d61ea31d4f3d92 to your computer and use it in GitHub Desktop.
jetbrains fleet
{
    "configurations": [
        {
            "type": "command",
            "name": "Create Build and Dependencies Directory",
            "program": "/opt/cmake/bin/cmake",
            "args": [
                "-E",
                "make_directory",
                "$PROJECT_DIR$/build-output/standalone-libs"
            ],
        },
        {
            "type": "command",
            "name": "Generate build receipe",
            "program": "/opt/cmake/bin/cmake",
            "args": [
                "-S",
                "$PROJECT_DIR$",
                "-B",
                "$PROJECT_DIR$/build-output",
                "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
                "-DCMAKE_BUILD_TYPE=Release",
                "-DCMAKE_CXX_COMPILER=/opt/clang+llvm/bin/clang++",
                "-DCMAKE_CXX_INCLUDE_WHAT_YOU_USE",
                "-DCMAKE_C_COMPILER=/opt/clang+llvm/bin/clang",
                "-DCMAKE_CXX_CLANG_TIDY=/opt/clang+llvm/bin/clang-tidy",
                "-DCMAKE_CXX_CPPCHECK=/opt/cppcheck/bin/cppcheck",
                "-DCMAKE_CXX_CPPLINT=/opt/cpplint/bin/cpplint",
                "-DCMAKE_INSTALL_PREFIX=$PROJECT_DIR$/build-output/standalone-libs"
            ],
        },
        {
            "type": "command",
            "name": "Build Librarie and Dependencies",
            "program": "/opt/cmake/bin/cmake",
            "args": [
                "--build",
                "$PROJECT_DIR$/build-output",
                "--target",
                "all",
                "--config",
                "Release"
            ],
        },
    ]
}
//&& cmake -E make_directory build \
//&& cmake -E chdir build cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local \
//&& cmake --build build --target all --clean-first > /dev/null 2>&1 \
//&& cmake --build build --target install \

// cd %HOMEPATH%/Libraries
// cmake -S libexpat/expat -B buildtrees/expat -DCMAKE_INSTALL_PREFIX=%HOMEPATH%/Libraries/installed
// cmake --build buildtrees/expat --target install --config Release
// cmake -S apr-1.7.0 -B buildtrees/apr -DCMAKE_INSTALL_PREFIX=%HOMEPATH%/Libraries/installed
// cmake --build buildtrees/apr --target install --config Release
// set CMAKE_PREFIX_PATH=%HOMEPATH%/Libraries/installed
// cmake -S apr-util-1.6.1 -B buildtrees/apr-util -DCMAKE_INSTALL_PREFIX=%HOMEPATH%/Libraries/installed
// cmake --build buildtrees/apr-util --target install --config Release
// cmake -S apache-Log4cxx-x.x.x -B buildtrees/Log4cxx -DCMAKE_INSTALL_PREFIX=%HOMEPATH%/Libraries/installed
// cmake --build buildtrees/Log4cxx --target install --config Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment