forked from gopro/gpmf-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-arrange source files and remove unneeded files.
- Loading branch information
Thomas Fanell
committed
Mar 1, 2023
1 parent
4dae078
commit 08c0532
Showing
13 changed files
with
397 additions
and
1,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,7 @@ | ||
# CMakeLists.txt | ||
cmake_minimum_required (VERSION 3.8.2) | ||
project (gpmf-parser) | ||
|
||
set(CMAKE_SUPPRESS_REGENERATION true) | ||
set(CMAKE_CONFIGURATION_TYPES "Debug;Release") | ||
|
||
file(GLOB LIB_SOURCES "GPMF_parser.c" "GPMF_utils.c") | ||
file(GLOB SOURCES ${LIB_SOURCES} "demo/GPMF_demo.c" "demo/GPMF_print.c" "demo/GPMF_mp4reader.c") | ||
|
||
add_executable(GPMF_PARSER_BIN ${SOURCES}) | ||
set_target_properties(GPMF_PARSER_BIN PROPERTIES OUTPUT_NAME "${PROJECT_NAME}") | ||
add_library(GPMF_PARSER_LIB ${LIB_SOURCES}) | ||
set_target_properties(GPMF_PARSER_LIB PROPERTIES OUTPUT_NAME "${PROJECT_NAME}") | ||
|
||
set(PC_LINK_FLAGS "-l${PROJECT_NAME}") | ||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc.in" "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc" @ONLY) | ||
project (gpmf-parser) | ||
|
||
install(TARGETS GPMF_PARSER_BIN DESTINATION "bin") | ||
install(TARGETS GPMF_PARSER_LIB DESTINATION "lib") | ||
install(FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION "lib/pkgconfig") | ||
set(GMPF_PARSER_PUBLIC_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/include) | ||
|
||
install(FILES "GPMF_parser.h" "GPMF_common.h" "GPMF_utils.h" DESTINATION "include/gpmf-parser") | ||
install(FILES "demo/GPMF_mp4reader.h" DESTINATION "include/gpmf-parser/demo") | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src) |
Oops, something went wrong.