mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-03 19:38:00 -06:00
Improved, fixed and streamlined cmake files. Optionally use system libraries instead of vcpkg (-DENABLE_VCPKG=OFF)
25 lines
557 B
CMake
25 lines
557 B
CMake
project(CemuUtil)
|
|
|
|
file(GLOB_RECURSE CPP_FILES *.cpp)
|
|
file(GLOB_RECURSE H_FILES *.h)
|
|
|
|
add_library(CemuUtil ${CPP_FILES} ${H_FILES})
|
|
|
|
set_property(TARGET CemuUtil PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
|
|
target_precompile_headers(CemuUtil PRIVATE ../Common/precompiled.h)
|
|
|
|
target_include_directories(CemuUtil PUBLIC "../")
|
|
|
|
target_link_libraries(CemuUtil PRIVATE
|
|
CemuCommon
|
|
CemuConfig
|
|
Boost::headers
|
|
Boost::nowide
|
|
OpenSSL::Crypto
|
|
)
|
|
|
|
if (ENABLE_WXWIDGETS)
|
|
target_link_libraries(CemuUtil PRIVATE wx::base wx::core)
|
|
endif()
|