-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
54 lines (39 loc) · 1.68 KB
/
Copy pathCMakeLists.txt
File metadata and controls
54 lines (39 loc) · 1.68 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required( VERSION 2.8.11 )
project( AOS_Designer )
set( BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/Build )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${BUILD_DIR} )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${BUILD_DIR} )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BUILD_DIR} )
#####################################################
# Common configuration.
set( AOS_TEST_PROJECTS_GROUP_PATH tests-aos
CACHE STRING
"Name of the virtual directory that will contain all AOS test projects."
FORCE
)
# Of course we want unit tests possible.
enable_testing()
# Allow generating test projects if the user want it.
option( AOS_FORCE_ENABLE_ALL_TESTS "Enable by force generation of all test projects of AOS projects" ON )
option( AOS_FORCE_DISABLE_ALL_TESTS "Disable by force generation of all test projects of AOS projects (this option have priority)" OFF )
macro( AOS_FORCE_ENABLE_TEST_ALL_PROJECTS ON_OR_OFF )
set( UTILCPP_ENABLE_TESTS ${ON_OR_OFF} CACHE BOOL "" FORCE )
set( AOSLCPP_ENABLE_TESTS ${ON_OR_OFF} CACHE BOOL "" FORCE )
set( AOSD_ENABLE_ALL_TESTS ${ON_OR_OFF} CACHE BOOL "" FORCE )
# message( "UTILCPP_ENABLE_TESTS: ${UTILCPP_ENABLE_TESTS}" )
# message( "AOSLCPP_ENABLE_TESTS: ${AOSLCPP_ENABLE_TESTS}" )
# message( "AOSD_ENABLE_ALL_TESTS: ${AOSD_ENABLE_ALL_TESTS}" )
endmacro()
if( AOS_FORCE_ENABLE_ALL_TESTS AND NOT AOS_FORCE_DISABLE_ALL_TESTS )
AOS_FORCE_ENABLE_TEST_ALL_PROJECTS( ON )
endif()
if( AOS_FORCE_DISABLE_ALL_TESTS )
AOS_FORCE_ENABLE_TEST_ALL_PROJECTS( OFF )
endif()
#####################################################
# Projects.
add_subdirectory( dependencies )
add_subdirectory( aosl )
add_subdirectory( utilcpp )
add_subdirectory( aosl-cpp )
add_subdirectory( aos-designer )