Skip to content

Commit 93b5023

Browse files
committed
cmake support
1 parent 1040d68 commit 93b5023

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ coverage/*
1414
*.tlog
1515
**/*.o.dSYM/*
1616
**/Debug/*
17-
**/Release/*
17+
**/Release/*
18+
build/

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
3+
# set the project name
4+
project(tsdemux)
5+
6+
# lots of warnings and all warnings as errors
7+
## add_compile_options(-Wall -Wextra )
8+
set(CMAKE_CXX_STANDARD 17)
9+
10+
file(GLOB_RECURSE SRC_LIST_C CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/src/*.c" )
11+
12+
# define libraries
13+
add_library (tsdemux ${SRC_LIST_C})
14+
15+
# define location for header files
16+
target_include_directories(tsdemux PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src )
17+

0 commit comments

Comments
 (0)