Apply cmake-format
This commit is contained in:
parent
da64d455d9
commit
97c1a2100d
|
@ -77,8 +77,7 @@ set(HEADER_FILES
|
||||||
vorbis/vorbiscommentids.h
|
vorbis/vorbiscommentids.h
|
||||||
vorbis/vorbisidentificationheader.h
|
vorbis/vorbisidentificationheader.h
|
||||||
vorbis/vorbispackagetypes.h
|
vorbis/vorbispackagetypes.h
|
||||||
wav/waveaudiostream.h
|
wav/waveaudiostream.h)
|
||||||
)
|
|
||||||
set(SRC_FILES
|
set(SRC_FILES
|
||||||
aac/aaccodebook.cpp
|
aac/aaccodebook.cpp
|
||||||
aac/aacframe.cpp
|
aac/aacframe.cpp
|
||||||
|
@ -146,12 +145,8 @@ set(SRC_FILES
|
||||||
vorbis/vorbiscomment.cpp
|
vorbis/vorbiscomment.cpp
|
||||||
vorbis/vorbiscommentfield.cpp
|
vorbis/vorbiscommentfield.cpp
|
||||||
vorbis/vorbisidentificationheader.cpp
|
vorbis/vorbisidentificationheader.cpp
|
||||||
wav/waveaudiostream.cpp
|
wav/waveaudiostream.cpp)
|
||||||
)
|
set(TEST_HEADER_FILES tests/helper.h tests/overall.h)
|
||||||
set(TEST_HEADER_FILES
|
|
||||||
tests/helper.h
|
|
||||||
tests/overall.h
|
|
||||||
)
|
|
||||||
set(TEST_SRC_FILES
|
set(TEST_SRC_FILES
|
||||||
tests/helper.cpp
|
tests/helper.cpp
|
||||||
tests/mediafileinfo.cpp
|
tests/mediafileinfo.cpp
|
||||||
|
@ -163,13 +158,9 @@ set(TEST_SRC_FILES
|
||||||
tests/overallogg.cpp
|
tests/overallogg.cpp
|
||||||
tests/tagvalue.cpp
|
tests/tagvalue.cpp
|
||||||
tests/testfilecheck.cpp
|
tests/testfilecheck.cpp
|
||||||
tests/utils.cpp
|
tests/utils.cpp)
|
||||||
)
|
|
||||||
|
|
||||||
set(DOC_FILES
|
set(DOC_FILES README.md doc/adding-new-fields.md)
|
||||||
README.md
|
|
||||||
doc/adding-new-fields.md
|
|
||||||
)
|
|
||||||
|
|
||||||
# meta data
|
# meta data
|
||||||
set(META_PROJECT_NAME tagparser)
|
set(META_PROJECT_NAME tagparser)
|
||||||
|
@ -193,30 +184,20 @@ use_cpp_utilities()
|
||||||
# find 3rd party libraries
|
# find 3rd party libraries
|
||||||
include(3rdParty)
|
include(3rdParty)
|
||||||
# zlib
|
# zlib
|
||||||
use_external_library_from_package(
|
use_external_library_from_package(z ZLIB ANY_VERSION ZLIB_INCLUDE_DIRS ZLIB_LIBRARIES AUTO_LINKAGE REQUIRED)
|
||||||
z
|
|
||||||
ZLIB ANY_VERSION
|
|
||||||
ZLIB_INCLUDE_DIRS
|
|
||||||
ZLIB_LIBRARIES
|
|
||||||
AUTO_LINKAGE
|
|
||||||
REQUIRED
|
|
||||||
)
|
|
||||||
# crypto (optional for testing integrity of testfiles)
|
# crypto (optional for testing integrity of testfiles)
|
||||||
find_external_library_from_package(
|
find_external_library_from_package(crypto
|
||||||
crypto
|
OpenSSL
|
||||||
OpenSSL ANY_VERSION
|
ANY_VERSION
|
||||||
OPENSSL_INCLUDE_DIR
|
OPENSSL_INCLUDE_DIR
|
||||||
OPENSSL_CRYPTO_LIBRARY
|
OPENSSL_CRYPTO_LIBRARY
|
||||||
AUTO_LINKAGE
|
AUTO_LINKAGE
|
||||||
OPTIONAL
|
OPTIONAL)
|
||||||
)
|
link_tests_against_library(crypto AUTO_LINKAGE OPTIONAL)
|
||||||
link_tests_against_library(
|
if (NOT USE_crypto)
|
||||||
crypto AUTO_LINKAGE OPTIONAL
|
|
||||||
)
|
|
||||||
if(NOT USE_crypto)
|
|
||||||
list(REMOVE_ITEM TEST_SRC_FILES tests/testfilecheck.cpp)
|
list(REMOVE_ITEM TEST_SRC_FILES tests/testfilecheck.cpp)
|
||||||
message(WARNING "Unable to check testfile integrity because OpenSSL is not available.")
|
message(WARNING "Unable to check testfile integrity because OpenSSL is not available.")
|
||||||
endif()
|
endif ()
|
||||||
|
|
||||||
# include modules to apply configuration
|
# include modules to apply configuration
|
||||||
include(BasicConfig)
|
include(BasicConfig)
|
||||||
|
|
Loading…
Reference in New Issue