-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (20 loc) · 990 Bytes
/
CMakeLists.txt
File metadata and controls
28 lines (20 loc) · 990 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
cmake_minimum_required(VERSION 3.0)
project (MPEG2COREPROJ)
include_directories(./include ./source)
aux_source_directory(./source SRC)
set(EXECUTABLE_OUTPUT_PATH ./)
add_compile_options(-g)
set(CMAKE_BUILD_TYPE Debug) # Release
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ./)
add_library(mpeg2core SHARED ${SRC})
# test
add_executable(mpeg2core_ts_demuxer_test ./test/mpeg2core_ts_demuxer_test.c)
target_link_libraries(mpeg2core_ts_demuxer_test mpeg2core)
add_executable(mpeg2core_ts_muxer_test ./test/mpeg2core_ts_muxer_test.c)
target_link_libraries(mpeg2core_ts_muxer_test mpeg2core)
add_executable(mpeg2core_ps_demuxer_test ./test/mpeg2core_ps_demuxer_test.c)
target_link_libraries(mpeg2core_ps_demuxer_test mpeg2core)
add_executable(mpeg2core_ps_muxer_test ./test/mpeg2core_ps_muxer_test.c)
target_link_libraries(mpeg2core_ps_muxer_test mpeg2core)
add_executable(mpeg2core_ps_muxer_test_av ./test/mpeg2core_ps_muxer_test_av.c)
target_link_libraries(mpeg2core_ps_muxer_test_av mpeg2core)