feat: added compilable cmake for core, added method to get physical core count.
This commit is contained in:
parent
1c6b515826
commit
734aee7d18
6 changed files with 113 additions and 0 deletions
13
core/src/CMakeLists.txt
Normal file
13
core/src/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
set(CORE_SRC
|
||||
core.c
|
||||
)
|
||||
|
||||
list(TRANSFORM CORE_SRC PREPEND ${CMAKE_CURRENT_LIST_DIR}/)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
add_library(pigeon-core ${CORE_SRC})
|
||||
target_include_directories(pigeon-core PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src)
|
||||
target_link_libraries(pigeon-core OpenSSL::SSL)
|
||||
Loading…
Add table
Add a link
Reference in a new issue