2022-08-22 22:21:23 +02:00
|
|
|
project(CemuCafe)
|
|
|
|
|
2022-08-28 15:29:15 +02:00
|
|
|
if((CMAKE_C_COMPILER_ID STREQUAL "GNU") OR (CMAKE_C_COMPILER_ID STREQUAL "Clang"))
|
|
|
|
add_compile_options(-mssse3 -mavx2)
|
|
|
|
endif()
|
|
|
|
|
2022-08-22 22:21:23 +02:00
|
|
|
file(GLOB_RECURSE CPP_FILES *.cpp)
|
|
|
|
file(GLOB_RECURSE H_FILES *.h)
|
2022-08-30 19:02:56 +02:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
file(GLOB_RECURSE MM_FILES *.mm)
|
|
|
|
add_library(CemuCafe ${CPP_FILES} ${MM_FILES} ${H_FILES})
|
|
|
|
else()
|
|
|
|
add_library(CemuCafe ${CPP_FILES} ${H_FILES})
|
|
|
|
endif()
|
2022-08-22 22:21:23 +02:00
|
|
|
|
|
|
|
set_property(TARGET CemuCafe PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
|
|
|
|
|
|
target_precompile_headers(CemuCafe PRIVATE ../Common/precompiled.h)
|
|
|
|
|
2022-08-29 07:19:48 +02:00
|
|
|
target_include_directories(CemuCafe PUBLIC "../")
|
|
|
|
|
|
|
|
target_link_libraries(CemuCafe PRIVATE
|
|
|
|
CemuAsm
|
|
|
|
CemuAudio
|
|
|
|
CemuCommon
|
|
|
|
CemuComponents
|
|
|
|
CemuConfig
|
|
|
|
CemuGui
|
|
|
|
CemuInput
|
|
|
|
CemuResource
|
|
|
|
CemuUtil
|
|
|
|
imguiImpl
|
|
|
|
Boost::headers
|
|
|
|
Boost::nowide
|
|
|
|
CURL::libcurl
|
|
|
|
fmt::fmt
|
|
|
|
glslang::SPIRV
|
|
|
|
ih264d
|
|
|
|
imgui::imgui
|
|
|
|
OpenSSL::Crypto
|
|
|
|
OpenSSL::SSL
|
|
|
|
PNG::PNG
|
|
|
|
pugixml::pugixml
|
|
|
|
ZArchive::zarchive
|
|
|
|
ZLIB::ZLIB
|
|
|
|
zstd::zstd
|
|
|
|
)
|
|
|
|
|
|
|
|
if (ENABLE_WXWIDGETS)
|
|
|
|
target_link_libraries(CemuCafe PRIVATE wx::base wx::core)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(CemuCafe PRIVATE iphlpapi)
|
|
|
|
endif()
|