Skip to content

Commit 81ad94b

Browse files
committed
Move to cmake
1 parent c15ff64 commit 81ad94b

8 files changed

Lines changed: 33 additions & 212 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
macvdmtool
2-
*.o
2+
*.o
3+
build/

CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cmake_minimum_required(VERSION 3.28)
2+
3+
project(macvdmtool)
4+
5+
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
6+
set(CMAKE_CXX_COMPILER "clang++")
7+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -v")
8+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
9+
10+
include_directories(include)
11+
12+
add_executable(macvdmtool src/main.cpp)
13+
14+
set_property(TARGET macvdmtool PROPERTY CXX_STANDARD 14)
15+
16+
target_link_libraries(macvdmtool "-framework CoreFoundation")
17+
target_link_libraries(macvdmtool "-framework IOKit")
18+
19+
20+
install(TARGETS macvdmtool)

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,17 @@ To revert back to the default kernel, enter 1TR again, access Utilities>Startup
8787

8888
## Building
8989

90-
Install the XCode commandline tools and type `make`.
90+
Install CMake and perform standard build
91+
92+
```sh
93+
$ mkdir build
94+
$ cd build
95+
$ cmake ..
96+
$ make
97+
$ sudo make install
98+
```
99+
100+
Why CMake? Because it builds fat binaries automatically and handles other things that make this a tad easier.
91101

92102
## Usage
93103

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)