forked from xmos/sln_voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (24 loc) · 850 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.21)
## Disable in-source build.
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message(FATAL_ERROR "In-source build is not allowed! Please specify a build folder.\n\tex:cmake -B build")
endif()
## Project declaration
project(solution_avona)
## Enable languages for project
enable_language(CXX C ASM)
## Project options
option(SOLUTION_AVONA_TESTS "Enable solution avona tests" OFF)
## TODO these should be moved outside of the xcore_sdk repository
## Import some helpful macros
include(xcore_sdk/tools/cmake_utils/xmos_macros.cmake)
## Add frameworks
add_subdirectory(xcore_sdk)
## Add top level project targets
if(PROJECT_IS_TOP_LEVEL)
include(applications/applications.cmake)
include(examples/examples.cmake)
endif()
if(SOLUTION_AVONA_TESTS)
include(test/tests.cmake)
endif()