mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-22 21:21:03 +00:00
26 lines
478 B
CMake
26 lines
478 B
CMake
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
|
|
*.cpp
|
|
*.hpp
|
|
)
|
|
|
|
add_library(emulator-common ${SRC_FILES})
|
|
|
|
momo_assign_source_group(${SRC_FILES})
|
|
|
|
target_include_directories(emulator-common INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
find_package(Threads REQUIRED)
|
|
|
|
target_link_libraries(emulator-common PUBLIC
|
|
Threads::Threads
|
|
zlibstatic
|
|
minidump::minidump
|
|
)
|
|
|
|
if(WIN)
|
|
target_link_libraries(emulator-common PUBLIC
|
|
ws2_32
|
|
)
|
|
endif()
|