diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 337e07141cc7805cdb1ab5572b0589c14938b7b4..9cadff4a2111226130c8a095c0341717b0d339c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,7 +36,7 @@ build:fedora: extends: .f34-ogl stage: build script: - - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug + - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DFGGL_EXT_BULLET=OFF - cmake --build build artifacts: paths: @@ -49,7 +49,7 @@ build:ubuntu: - apt update && apt install -y build-essential cmake - apt install -y libglm-dev libglfw3-dev libopenal-dev libspdlog-dev libfreetype-dev libyaml-cpp-dev libassimp-dev libbullet-extras-dev libgtest-dev libgmock-dev liblua5.2-dev script: - - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug + - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DFGGL_EXT_BULLET=OFF -DFGGL_EXT_LUA=OFF - cmake --build build diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e019504f4bdacab2c08a859dde220ab208a28ea..5a9e2c4767349b49f85bd7aed2e621b2c96df426 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,9 @@ option(FGGL_EXAMPLES "Should we build examples or just the library" ON) option(FGGL_TESTS "Should we enable the testing suite?" ON) option(FGGL_DOCS "Should we build documentation?" ON) +option(FGGL_EXT_BULLET "Should we build the bullet module?" OFF) +option(FGGL_EXT_LUA "Should we build the lua module?" ON) + ## # Windows # When on windows, integrate vcpkg @@ -66,8 +69,13 @@ endif() ## # 3rd party integrations -add_subdirectory( integrations/bullet ) -add_subdirectory( integrations/lua ) +if ( FGGL_EXT_BULLET ) + add_subdirectory( integrations/bullet ) +endif() + +if ( FGGL_EXT_LUA ) + add_subdirectory( integrations/lua ) +endif() # Tools # add_subdirectory( tools/pack )