mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-11 10:24:37 +01:00
719ee90b27
- Fix target_precompile_headers() usage; the CemuCommon target exposes the src/Common/precompiled.h precompiled header as part of its public interface with target_precompile_headers(CemuCommon PUBLIC precompiled.h), so all the other targets wanting to use the precompiled header have to link to the CemuCommon target with target_precompile_headers(TargetName PRIVATE CemuCommon). - Set the project version to 2.0 - Set RUNTIME_OUTPUT_DIRECTORY instead of only their _DEBUG and _RELEASE variants, fixing the compilation when neither build types are defined - Use a consistent indentation style (tabs, like in the .cpp files) - Use "modern" variants of some functions, e.g. add_definitions -> add_compile_definitions
23 lines
488 B
CMake
23 lines
488 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_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()
|