forked from MarcusNordstrom/C-Step-Counter
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
executable file
·17 lines (14 loc) · 694 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.0.0)
project(stepCountingAlgo LANGUAGES C VERSION 0.1.0)
#Debug flags (sanitizers)
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined") #-fsanitize=memory
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined")
#Compile and link
include_directories(${PROJECT_SOURCE_DIR}/include)
set(SOURCES, "src/main.c")
file(GLOB SOURCES "src/*.c")
add_library(stepCountingAlgo ${SOURCES})
target_link_libraries(stepCountingAlgoTest m)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)