mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-04-19 10:51:18 +00:00

* Compiling and running on Linux. * Fix xpointer constructor. * Convert dependencies to submodules. * Fix wchar_t usage for Linux.
31 lines
776 B
CMake
31 lines
776 B
CMake
cmake_minimum_required (VERSION 3.8)
|
|
|
|
project("PowerRecomp")
|
|
|
|
BIN2H(SOURCE_FILE
|
|
${POWERUTILS_ROOT}/ppc_context.h
|
|
HEADER_FILE "generated/ppc_context.gen.h"
|
|
ARRAY_TYPE "char"
|
|
VARIABLE_NAME "g_PPCContextText")
|
|
|
|
add_executable(PowerRecomp
|
|
"main.cpp"
|
|
"recompiler.cpp"
|
|
"test_recompiler.cpp"
|
|
"recompiler_config.cpp")
|
|
|
|
target_precompile_headers(PowerRecomp PUBLIC "pch.h")
|
|
|
|
target_link_libraries(PowerRecomp PRIVATE
|
|
LibPowerAnalyse
|
|
PowerUtils
|
|
fmt::fmt
|
|
tomlplusplus::tomlplusplus
|
|
xxHash::xxhash)
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
target_compile_options(PowerRecomp PRIVATE -Wno-switch -Wno-unused-variable -Wno-null-arithmetic)
|
|
endif()
|
|
|
|
target_compile_definitions(PowerRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)
|