mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Add a sample project for compiling the recompiled functions.
This commit is contained in:
1
PowerSample/.gitignore
vendored
Normal file
1
PowerSample/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ppc_*
|
13
PowerSample/CMakeLists.txt
Normal file
13
PowerSample/CMakeLists.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
project("PowerSample")
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_COMPILER "clang-cl")
|
||||
set(CMAKE_C_COMPILER "clang-cl")
|
||||
add_compile_options("-march=x86-64-v3")
|
||||
|
||||
file(GLOB RecompiledFiles *.cpp)
|
||||
add_library(PowerSample SHARED ${RecompiledFiles})
|
||||
|
||||
target_precompile_headers(PowerSample PUBLIC "ppc_recomp_shared.h")
|
||||
|
||||
target_link_libraries(PowerSample PUBLIC PowerUtils)
|
0
PowerSample/main.cpp
Normal file
0
PowerSample/main.cpp
Normal file
Reference in New Issue
Block a user