-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (23 loc) · 972 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.4.1)
set(default_build_type "Release")
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE
STRING "Choose the type of build." FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
project(AirPlay)
set (CMAKE_CXX_STANDARD 11)
set (RENDERER_FLAGS "")
add_subdirectory(lib/playfair)
add_subdirectory(lib/llhttp)
add_subdirectory(lib)
add_subdirectory(renderers)
# Make sure the main executable is aware of the available renderers
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RENDERER_FLAGS}" )
#add_executable( rpiplay rpiplay.cpp)
#target_link_libraries ( rpiplay renderers airplay )
#install(TARGETS rpiplay RUNTIME DESTINATION bin)
add_library( libairplay SHARED airplay.cpp airplay.h)
target_compile_definitions(libairplay PRIVATE LIBAIRPLAY_EXPORTS)
target_link_libraries ( libairplay renderers airplay )