Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Jussi Kukkonen
CMake
Commits
9f7de396
Commit
9f7de396
authored
8 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
expat: Drop upstream test/install/packaging code
parent
b4678e1c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Utilities/cmexpat/CMakeLists.txt
+0
-67
0 additions, 67 deletions
Utilities/cmexpat/CMakeLists.txt
Utilities/cmexpat/expat_config.h.cmake
+0
-15
0 additions, 15 deletions
Utilities/cmexpat/expat_config.h.cmake
with
0 additions
and
82 deletions
Utilities/cmexpat/CMakeLists.txt
+
0
−
67
View file @
9f7de396
...
...
@@ -4,16 +4,6 @@
project
(
expat
)
cmake_minimum_required
(
VERSION 2.6
)
set
(
PACKAGE_BUGREPORT
"expat-bugs@libexpat.org"
)
set
(
PACKAGE_NAME
"expat"
)
set
(
PACKAGE_VERSION
"2.1.1"
)
set
(
PACKAGE_STRING
"
${
PACKAGE_NAME
}
${
PACKAGE_VERSION
}
"
)
set
(
PACKAGE_TARNAME
"
${
PACKAGE_NAME
}
"
)
option
(
BUILD_tools
"build the xmlwf tool for expat library"
ON
)
option
(
BUILD_examples
"build the examples for expat library"
ON
)
option
(
BUILD_tests
"build the tests for expat library"
ON
)
option
(
BUILD_shared
"build a shared expat library"
ON
)
# configuration options
set
(
XML_CONTEXT_BYTES 1024 CACHE STRING
"Define to specify how much context to retain around the current parse point"
)
...
...
@@ -31,10 +21,6 @@ else(XML_NS)
set
(
XML_NS 0
)
endif
(
XML_NS
)
if
(
BUILD_tests
)
enable_testing
()
endif
(
BUILD_tests
)
include
(
ConfigureChecks.cmake
)
include_directories
(
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
/lib
)
...
...
@@ -66,56 +52,3 @@ else(BUILD_shared)
endif
(
BUILD_shared
)
add_library
(
expat
${
_SHARED
}
${
expat_SRCS
}
)
install
(
TARGETS expat RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
set
(
prefix
${
CMAKE_INSTALL_PREFIX
}
)
set
(
exec_prefix
"
\$
{prefix}/bin"
)
set
(
libdir
"
\$
{prefix}/lib"
)
set
(
includedir
"
\$
{prefix}/include"
)
configure_file
(
expat.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/expat.pc
)
install
(
FILES lib/expat.h lib/expat_external.h DESTINATION include
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/expat.pc DESTINATION lib/pkgconfig
)
if
(
BUILD_tools AND NOT WINCE
)
set
(
xmlwf_SRCS
xmlwf/xmlwf.c
xmlwf/xmlfile.c
xmlwf/codepage.c
xmlwf/readfilemap.c
)
add_executable
(
xmlwf
${
xmlwf_SRCS
}
)
set_property
(
TARGET xmlwf PROPERTY RUNTIME_OUTPUT_DIRECTORY xmlwf
)
target_link_libraries
(
xmlwf expat
)
install
(
TARGETS xmlwf DESTINATION bin
)
install
(
FILES doc/xmlwf.1 DESTINATION share/man/man1
)
endif
(
BUILD_tools AND NOT WINCE
)
if
(
BUILD_examples
)
add_executable
(
elements examples/elements.c
)
set_property
(
TARGET elements PROPERTY RUNTIME_OUTPUT_DIRECTORY examples
)
target_link_libraries
(
elements expat
)
add_executable
(
outline examples/outline.c
)
set_property
(
TARGET outline PROPERTY RUNTIME_OUTPUT_DIRECTORY examples
)
target_link_libraries
(
outline expat
)
endif
(
BUILD_examples
)
if
(
BUILD_tests
)
## these are unittests that can be run on any platform
add_executable
(
runtests tests/runtests.c tests/chardata.c tests/minicheck.c
)
set_property
(
TARGET runtests PROPERTY RUNTIME_OUTPUT_DIRECTORY tests
)
target_link_libraries
(
runtests expat
)
add_test
(
runtests tests/runtests
)
add_executable
(
runtestspp tests/runtestspp.cpp tests/chardata.c tests/minicheck.c
)
set_property
(
TARGET runtestspp PROPERTY RUNTIME_OUTPUT_DIRECTORY tests
)
target_link_libraries
(
runtestspp expat
)
add_test
(
runtestspp tests/runtestspp
)
endif
(
BUILD_tests
)
This diff is collapsed.
Click to expand it.
Utilities/cmexpat/expat_config.h.cmake
+
0
−
15
View file @
9f7de396
...
...
@@ -48,21 +48,6 @@
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H
/* Define to the address where bug reports for this package should be sent. */
#cmakedefine PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME
/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME
/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#cmakedefine STDC_HEADERS
...
...
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