mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 02:08:31 +12:00
- 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
26 lines
486 B
CMake
26 lines
486 B
CMake
project(imguiImpl)
|
|
|
|
add_library(imguiImpl)
|
|
|
|
set_property(TARGET imguiImpl PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
|
|
target_sources(imguiImpl PRIVATE
|
|
imgui_impl_opengl3.cpp
|
|
imgui_impl_opengl3.h
|
|
imgui_impl_vulkan.cpp
|
|
imgui_impl_vulkan.h
|
|
imgui_extension.cpp
|
|
imgui_extension.h
|
|
)
|
|
|
|
target_include_directories(imguiImpl PUBLIC "../")
|
|
|
|
target_link_libraries(imguiImpl PRIVATE
|
|
CemuCafe
|
|
CemuCommon
|
|
CemuGui
|
|
CemuInput
|
|
CemuResource
|
|
CemuUtil
|
|
imgui::imgui
|
|
)
|