Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cmake for macos/linux #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
cmake_minimum_required(VERSION 3.15)

project(platinum)

include_directories(
ThirdParty/Neptune/Source/Core
ThirdParty/Neptune/Source/System/StdC
ThirdParty/Neptune/Source/System/Bsd
ThirdParty/Neptune/Source/System/Posix
ThirdParty/Neptune/Source/System/Null

Source/Core
Source/Platinum
Source/Extras
Source/Devices/MediaConnect
Source/Devices/MediaServer
Source/Devices/MediaRenderer
)

file(GLOB SRCS_SYSTEM
ThirdParty/Neptune/Source/Core/*.cpp
ThirdParty/Neptune/Source/System/StdC/*.cpp
ThirdParty/Neptune/Source/System/Bsd/*.cpp
ThirdParty/Neptune/Source/System/Posix/*.cpp
ThirdParty/Neptune/Source/System/Null/NptNullAutoreleasePool.cpp
ThirdParty/Neptune/Source/System/Null/NptNullSerialPort.cpp

Source/Core/*.cpp
Source/Extras/*.cpp
Source/Devices/MediaConnect/*.cpp
Source/Devices/MediaServer/*.cpp
Source/Devices/MediaRenderer/*.cpp
)

if (CMAKE_SYSTEM_NAME MATCHES "Linux")
link_libraries(pthread dl)
endif ()

add_library(${PROJECT_NAME} ${SRCS_SYSTEM})
link_libraries(${PROJECT_NAME})

file(GLOB SRCS Source/Apps/MicroMediaController/*.cpp)
add_executable(demo_MicroMediaController ${SRCS})