2024-09-07 18:00:09 +06:00
|
|
|
cmake_minimum_required (VERSION 3.8)
|
|
|
|
|
|
|
|
project("PowerRecomp")
|
|
|
|
|
2024-10-17 16:59:45 +01: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-10-01 00:09:18 +03:00
|
|
|
add_executable(PowerRecomp "main.cpp" "pch.h" "recompiler.cpp" "recompiler.h" "test_recompiler.cpp" "test_recompiler.h" "recompiler_config.h" "recompiler_config.cpp")
|
2024-09-21 16:59:55 +03:00
|
|
|
target_precompile_headers(PowerRecomp PUBLIC "pch.h")
|
2024-09-18 16:04:52 +03:00
|
|
|
target_link_libraries(PowerRecomp PRIVATE LibPowerAnalyse tomlplusplus::tomlplusplus xxHash::xxhash)
|
2024-10-27 18:29:28 +03:00
|
|
|
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
|
|
target_compile_options(PowerRecomp PRIVATE -Wno-switch -Wno-unused-variable)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_compile_definitions(PowerRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)
|