https://github.com/ipatch/hello-world-cmake
a simple project to help me better understand cmake
https://github.com/ipatch/hello-world-cmake
Last synced: 5 months ago
JSON representation
a simple project to help me better understand cmake
- Host: GitHub
- URL: https://github.com/ipatch/hello-world-cmake
- Owner: ipatch
- License: mit
- Created: 2024-11-23T19:26:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-21T20:16:19.000Z (over 1 year ago)
- Last Synced: 2025-03-26T10:48:37.708Z (over 1 year ago)
- Language: CMake
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-world-cmake
a simple project to help me better understand cmake
## issues
my recently included patch file in the homebrew-freecad tap should resolve the missing header files when building freecad
using the below cmake command the current 0.21.2 release of freecad is unable to locate certain header files from a homebrew installation, ie.
```
#include
```
and
```
```
## todos
- [ ] tshooting linking error with libmedc (the error i'm getting with freecad when building on gnu+linux)
- [x] ~~need to incorporate a basic usage with xerces-c~~
- [x] ~~need to setup a formula file in my homebrew tap ie. ipatch/us-05 that builds this project~~
## working with cmake via CLI
when building this project from a cli i use the below cmake command, with the idea that i am going to manually specify, the required cmake variables via the cli. my primary reason for doing this is because homebrew installs qt v5 and qt v6 in the same install prefix thus making it next to impossible to isolate and use a specific qt installation.
```sh
export bp=$(brew --prefix)
cmake \
-GNinja \
-DCMAKE_MAKE_PROGRAM=$bp/opt/ninja/bin/ninja \
-DCMAKE_C_COMPILER=$bp/opt/llvm/bin/clang \
-DCMAKE_CXX_COMPILER=$bp/opt/llvm/bin/clang \
-DCMAKE_LINKER=$bp/opt/lld/bin/lld \
-DCMAKE_FIND_USE_CMAKE_SYSTEM_PATH=FALSE \
-DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=FALSE \
-DCMAKE_IGNORE_PATH="/home/capin/homebrew/lib;/home/capin/homebrew/include/QtCore;/home/capin/homebrew/Cellar/qt;" \
..
```