Skip to content

Commit 13b75f5

Browse files
committed
add CMakeLists.txt
1 parent d2a2ae4 commit 13b75f5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
!.gitignore
1313
!Makefile
1414
*.FileListAbsolute.txt
15+
build/

CMakeLists.txt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
project(tsreadex LANGUAGES CXX)
3+
4+
set(CMAKE_CXX_STANDARD 11)
5+
6+
# TODO: -municode when MINGW_PREFIX
7+
8+
set(TSREADEX_LIBRARY_SRC util.cpp id3conv.cpp servicefilter.cpp aac.cpp huffman.cpp traceb24.cpp)
9+
set(TSREADEX_LIBRARY_HDR util.hpp id3conv.hpp servicefilter.hpp aac.hpp huffman.hpp traceb24.hpp)
10+
11+
add_library(tsreadexlib ${TSREADEX_LIBRARY_SRC} ${TSREADEX_LIBRARY_HDR})
12+
set_property(TARGET tsreadexlib PROPERTY OUTPUT_NAME tsreadex)
13+
add_library(tsreadex::lib ALIAS tsreadexlib)
14+
target_include_directories(tsreadexlib PUBLIC ${PROJECT_SOURCE_DIR})
15+
export(TARGETS tsreadexlib NAMESPACE tsreadex FILE ${PROJECT_BINARY_DIR}/tsreadex-targets.cmake)
16+
17+
add_executable(tsreadex tsreadex.cpp ${TSREADEX_LIBRARY_SRC})
18+

0 commit comments

Comments
 (0)