2024-09-18 15:19:20 +03:00
|
|
|
project("PowerSample")
|
|
|
|
|
|
|
|
set(CMAKE_CXX_COMPILER "clang-cl")
|
|
|
|
set(CMAKE_C_COMPILER "clang-cl")
|
2024-09-20 20:53:56 +03:00
|
|
|
add_compile_options(
|
2024-09-21 16:59:55 +03:00
|
|
|
"/clang:-march=x86-64-v3"
|
2024-09-20 20:53:56 +03:00
|
|
|
"/clang:-Wall"
|
|
|
|
"/clang:-Wno-unused-label"
|
2024-09-21 16:59:55 +03:00
|
|
|
"/clang:-Wno-unused-variable")
|
2024-09-18 15:19:20 +03:00
|
|
|
|
|
|
|
file(GLOB RecompiledFiles *.cpp)
|
2024-09-18 15:29:15 +03:00
|
|
|
add_library(PowerSample ${RecompiledFiles})
|
2024-09-18 15:19:20 +03:00
|
|
|
|
|
|
|
target_precompile_headers(PowerSample PUBLIC "ppc_recomp_shared.h")
|
|
|
|
|
|
|
|
target_link_libraries(PowerSample PUBLIC PowerUtils)
|