Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
libaec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mathis Rosenhauer
libaec
Commits
76ddfc84
Commit
76ddfc84
authored
10 years ago
by
Mathis Rosenhauer
Browse files
Options
Downloads
Patches
Plain Diff
Initial CMake support.
parent
ec04f5ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+3
-1
3 additions, 1 deletion
.gitignore
CMakeLists.txt
+22
-0
22 additions, 0 deletions
CMakeLists.txt
config.h.in
+3
-0
3 additions, 0 deletions
config.h.in
src/CMakeLists.txt
+24
-0
24 additions, 0 deletions
src/CMakeLists.txt
tests/CMakeLists.txt
+20
-0
20 additions, 0 deletions
tests/CMakeLists.txt
with
72 additions
and
1 deletion
.gitignore
+
3
−
1
View file @
76ddfc84
...
...
@@ -16,4 +16,6 @@ libtool
autom4te.cache
.DS_Store
data
*.cmake
CMakeFiles
build
This diff is collapsed.
Click to expand it.
CMakeLists.txt
0 → 100644
+
22
−
0
View file @
76ddfc84
cmake_minimum_required
(
VERSION 2.6
)
include
(
CheckIncludeFiles
)
include
(
TestBigEndian
)
project
(
libaec
)
set
(
libaec_VERSION_MAJOR 0
)
set
(
libaec_VERSION_MINOR 2
)
set
(
CMAKE_BUILD_TYPE Release
)
enable_testing
()
check_include_files
(
malloc.h HAVE_MALLOC_H
)
check_include_files
(
stdint.h HAVE_STDINT_H
)
test_big_endian
(
WORDS_BIGENDIAN
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/config.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
include_directories
(
"
${
PROJECT_BINARY_DIR
}
"
)
add_subdirectory
(
src
)
add_subdirectory
(
tests EXCLUDE_FROM_ALL
)
This diff is collapsed.
Click to expand it.
config.h.in
0 → 100644
+
3
−
0
View file @
76ddfc84
#cmakedefine HAVE_MALLOC_H 1
#cmakedefine HAVE_STDINT_H 1
#cmakedefine WORDS_BIGENDIAN 1
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
0 → 100644
+
24
−
0
View file @
76ddfc84
set
(
libaec_SRCS encode.c encode_accessors.c decode.c
)
add_library
(
aec SHARED
${
libaec_SRCS
}
)
set_target_properties
(
aec PROPERTIES
VERSION 0
SOVERSION 0.0
)
add_library
(
sz SHARED sz_compat.c
)
set_target_properties
(
sz PROPERTIES
VERSION 0
SOVERSION 0.0
)
target_link_libraries
(
sz aec
)
add_executable
(
aec_client aec.c
)
set_target_properties
(
aec_client PROPERTIES OUTPUT_NAME
"aec"
)
target_link_libraries
(
aec_client aec
)
install
(
FILES libaec.h szlib.h DESTINATION include
)
install
(
TARGETS aec sz
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/aec DESTINATION bin
)
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
0 → 100644
+
20
−
0
View file @
76ddfc84
add_library
(
check_aec check_aec.c
)
add_executable
(
check_code_options check_code_options.c
)
target_link_libraries
(
check_code_options check_aec aec
)
add_executable
(
check_buffer_sizes check_buffer_sizes.c
)
target_link_libraries
(
check_buffer_sizes check_aec aec
)
add_executable
(
check_long_fs check_long_fs.c
)
target_link_libraries
(
check_long_fs check_aec aec
)
add_test
(
check_code_options check_code_options
)
add_test
(
check_buffer_sizes check_buffer_sizes
)
add_test
(
check_long_fs check_long_fs
)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
)
add_dependencies
(
check
check_code_options
check_buffer_sizes
check_long_fs
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment