[Build] Convert build system to raw cmake and remove premake layer
This commit is contained in:
23
src/xenia/kernel/CMakeLists.txt
Normal file
23
src/xenia/kernel/CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
add_library(xenia-kernel STATIC)
|
||||
xe_platform_sources(xenia-kernel ${CMAKE_CURRENT_SOURCE_DIR} RECURSIVE)
|
||||
target_compile_definitions(xenia-kernel PRIVATE
|
||||
X86_FEATURES
|
||||
X86_HAVE_XSAVE_INTRIN
|
||||
X86_SSSE3
|
||||
X86_SSE42
|
||||
WITH_GZFILEOP
|
||||
)
|
||||
if(WIN32)
|
||||
target_compile_definitions(xenia-kernel PRIVATE
|
||||
X86_SSE2
|
||||
X86_AVX2
|
||||
X86_AVX512
|
||||
X86_AVX512VNNI
|
||||
X86_PCLMULQDQ_CRC
|
||||
X86_VPCLMULQDQ_CRC
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(xenia-kernel PUBLIC
|
||||
aes_128 fmt zlib-ng pugixml xenia-apu xenia-base xenia-cpu xenia-hid xenia-vfs
|
||||
)
|
||||
xe_target_defaults(xenia-kernel)
|
||||
Reference in New Issue
Block a user