mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-11 07:36:57 +00:00
This new architecture decomposes the project into several distict static libraries: common, host, kvm, and frontend. By using static libraries, changes within one module will only require that library to be re-linked, rather than recompiling and re-linking the entire executable. The third party library ImGui is now built as a static library target. Signed-off-by: Ronald Caesar <github43132@proton.me>
19 lines
600 B
CMake
19 lines
600 B
CMake
add_library(common STATIC)
|
|
|
|
target_sources(common PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Config.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/IoFile.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/PathUtil.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/StringUtil.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Thread.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Logging/Backend.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Logging/Filter.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Logging/TextFormatter.cpp
|
|
)
|
|
|
|
target_link_libraries(common PUBLIC fmt::fmt)
|
|
|
|
target_include_directories(common PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
)
|