-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (28 loc) · 769 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (28 loc) · 769 Bytes
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
cmake_minimum_required(VERSION 3.31)
project(stackfullTasks VERSION 1.0.0)
enable_language(C ASM_MASM)
set(INCLUDE_FILES
include/Tasklet.h
include/Task.h
include/SimpleTask.h
)
set(SRC_FILES
src/StackSwitch.asm
src/Tasklet.cpp
src/SimpleTask.cpp
)
add_library(stackfullTasks ${SRC_FILES} ${INCLUDE_FILES})
target_include_directories(stackfullTasks
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_compile_features(stackfullTasks PRIVATE cxx_std_17)
option(BUILD_TESTING "Enable Test Project" OFF)
if (BUILD_TESTING)
add_subdirectory(test)
endif ()
install(FILES ${INCLUDE_FILES} DESTINATION include)
install(TARGETS stackfullTasks
PUBLIC_HEADER
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/include
)