Skip to content

Commit

Permalink
cmake install all headers
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniTurtle committed Mar 20, 2024
1 parent fd579d6 commit 4485709
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
path: ./irrlicht-${{matrix.config.variant}}${{matrix.config.extras}}.zip

macos:
if: false
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -85,7 +84,7 @@ jobs:
- name: Build
run: |
cmake . -DCMAKE_FIND_FRAMEWORK=LAST -DBUILD_EXAMPLES=0 -DBUILD_SHARED_LIBS=false -DCMAKE_CXX_FLAGS_RELEASE="/MT /O2 /Ob2 /DNDEBUG"
cmake . -DCMAKE_FIND_FRAMEWORK=LAST -DBUILD_EXAMPLES=0 -DBUILD_SHARED_LIBS=false
make -j3
- name: Test (headless)
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/irrlichtmt"
FILES_MATCHING PATTERN "*.h"
)
install(DIRECTORY "${PROJECT_SOURCE_DIR}/source/Irrlicht/"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/irrlichtmt"
FILES_MATCHING PATTERN "*.h"
)

# Installation of CMake target and configuration files.
install(EXPORT IrrlichtMt-export
Expand Down
3 changes: 3 additions & 0 deletions install-test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd build
cmake --install . --prefix "install/"
pause

0 comments on commit 4485709

Please sign in to comment.