1 ###########################################################################
2 # Copyright 2018 IoT.bzh
4 # author: Loïc Collignon <loic.collignon@iot.bzh>
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 ###########################################################################
19 set(CMAKE_INCLUDE_CURRENT_DIR ON)
22 set(CMAKE_CXX_STANDARD 14)
23 set(CMAKE_CXX_STANDARD_REQUIRED ON)
24 set(OE_QMAKE_PATH_EXTERNAL_HOST_BINS $ENV{OE_QMAKE_PATH_HOST_BINS})
26 find_package(Qt5 COMPONENTS WebSockets AGLExtras REQUIRED)
28 PROJECT_TARGET_ADD(mixer)
30 option(NATIVE_BUILD "Build for native environment, without homescreen and window manager" OFF)
32 message(STATUS "Native build is ON")
33 add_definitions(-DNATIVE_BUILD)
43 set_target_properties(mixer PROPERTIES
46 COMPILE_FLAGS "${EXTRAS_CFLAGS} -DFOR_AFB_BINDING"
47 LINK_FLAGS "${BINDINGS_LINK_FLAG}"
48 LINK_LIBRARIES "${EXTRAS_LIBRARIES}"
49 OUTPUT_NAME "${TARGET_NAME}"
52 target_link_libraries(mixer
60 target_link_libraries(mixer