forked from Sorasky4/cmsis-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (37 loc) · 1.12 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
set(MY_CMAKE_VERSION 3.5.1)
cmake_minimum_required(VERSION ${MY_CMAKE_VERSION})
project(cmsis-wasm-project
VERSION 1.0.0
DESCRIPTION "cmsis-wasm"
LANGUAGES C CXX
)
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
set(CMSIS_INTERFACE_DIR "${PROJECT_SOURCE_DIR}/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2")
set(CMSIS_IMPL_INTERFACE_DIR "${PROJECT_SOURCE_DIR}/src/include")
include(default-cmake-options.cmake)
message(STATUS "BUILD_TYPE " ${BUILD_TYPE})
message(STATUS "GCOV " ${GCOV})
add_subdirectory(src)
set(INSTALL_CMAKE_DIR ${PROJECT_SOURCE_DIR}/public)
install(
DIRECTORY ${PROJECT_SOURCE_DIR}/src/include/
DESTINATION ${INSTALL_CMAKE_DIR}/include
)
install(
DIRECTORY ${CMSIS_INTERFACE_DIR}/
DESTINATION ${INSTALL_CMAKE_DIR}/include
)
install(
TARGETS cmsis
DESTINATION ${INSTALL_CMAKE_DIR}
EXPORT cmsis-export
LIBRARY DESTINATION lib
INCLUDES DESTINATION include
PUBLIC_HEADER DESTINATION include
)
install(
EXPORT cmsis-export
FILE cmsis-config.cmake
DESTINATION ${INSTALL_CMAKE_DIR}
EXPORT_LINK_INTERFACE_LIBRARIES
)