2024-09-07 18:00:09 +06:00
|
|
|
cmake_minimum_required (VERSION 3.8)
|
|
|
|
|
|
|
|
project("PowerRecomp")
|
|
|
|
|
2024-12-21 00:49:06 +03:00
|
|
|
BIN2H(SOURCE_FILE
|
|
|
|
${POWERUTILS_ROOT}/ppc_context.h
|
|
|
|
HEADER_FILE "generated/ppc_context.gen.h"
|
|
|
|
ARRAY_TYPE "char"
|
|
|
|
VARIABLE_NAME "g_PPCContextText")
|
2024-09-30 13:39:47 +06:00
|
|
|
|
2024-12-21 00:49:06 +03:00
|
|
|
add_executable(PowerRecomp
|
|
|
|
"main.cpp"
|
|
|
|
"recompiler.cpp"
|
|
|
|
"test_recompiler.cpp"
|
|
|
|
"recompiler_config.cpp")
|
2024-12-13 18:31:55 +03:00
|
|
|
|
2024-12-21 00:49:06 +03:00
|
|
|
target_precompile_headers(PowerRecomp PUBLIC "pch.h")
|
2024-12-13 18:31:55 +03:00
|
|
|
|
2024-12-21 00:49:06 +03:00
|
|
|
target_link_libraries(PowerRecomp PRIVATE
|
|
|
|
LibPowerAnalyse
|
|
|
|
PowerUtils
|
|
|
|
fmt::fmt
|
|
|
|
tomlplusplus::tomlplusplus
|
|
|
|
xxHash::xxhash)
|
2024-10-27 18:29:28 +03:00
|
|
|
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
2024-12-21 00:49:06 +03:00
|
|
|
target_compile_options(PowerRecomp PRIVATE -Wno-switch -Wno-unused-variable -Wno-null-arithmetic)
|
2024-10-27 18:29:28 +03:00
|
|
|
endif()
|
|
|
|
|
|
|
|
target_compile_definitions(PowerRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)
|