mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-23 14:29:39 +00:00
30 lines
487 B
CMake
30 lines
487 B
CMake
cmake_minimum_required(VERSION 3.24)
|
|
include(../setupModule.cmake)
|
|
|
|
set(libName libkernel)
|
|
project(${libName})
|
|
|
|
add_library(${libName} SHARED
|
|
entry.cpp
|
|
equeue.cpp
|
|
eventflag.cpp
|
|
semaphore.cpp
|
|
dmem.cpp
|
|
aio.cpp
|
|
fs.cpp
|
|
pthread.cpp
|
|
)
|
|
|
|
add_dependencies(${libName} core third_party)
|
|
target_link_libraries(${libName} PRIVATE
|
|
core.lib
|
|
libboost_thread
|
|
libboost_chrono
|
|
bcrypt.lib
|
|
)
|
|
|
|
target_compile_definitions(${libName} PRIVATE
|
|
BOOST_ALL_NO_LIB
|
|
)
|
|
|
|
setupModule(${libName}) |