xcbuild/Libraries/acdriver/CMakeLists.txt
2018-06-03 14:59:26 -04:00

60 lines
2.3 KiB
CMake

#
# Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
add_library(acdriver
Sources/Options.cpp
Sources/Driver.cpp
Sources/NonStandard.cpp
Sources/Output.cpp
Sources/Result.cpp
Sources/VersionAction.cpp
Sources/Version.cpp
Sources/CompileAction.cpp
Sources/Compile/Convert.cpp
Sources/Compile/Output.cpp
Sources/Compile/Asset.cpp
Sources/Compile/AppIconSet.cpp
Sources/Compile/BrandAssets.cpp
Sources/Compile/ComplicationSet.cpp
Sources/Compile/CubeTextureSet.cpp
Sources/Compile/DataSet.cpp
Sources/Compile/GCDashboardImage.cpp
Sources/Compile/GCLeaderboard.cpp
Sources/Compile/GCLeaderboardSet.cpp
Sources/Compile/IconSet.cpp
Sources/Compile/ImageSet.cpp
Sources/Compile/ImageStack.cpp
Sources/Compile/ImageStackLayer.cpp
Sources/Compile/LaunchImage.cpp
Sources/Compile/MipmapSet.cpp
Sources/Compile/SpriteAtlas.cpp
Sources/Compile/Sticker.cpp
Sources/Compile/StickerPack.cpp
Sources/Compile/StickerSequence.cpp
Sources/Compile/StickersIconSet.cpp
Sources/Compile/TextureSet.cpp
Sources/ContentsAction.cpp
)
target_link_libraries(acdriver PUBLIC xcassets process util_xcbuild plist graphics dependency ext bom car)
target_include_directories(acdriver PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Headers")
#install(TARGETS acdriver DESTINATION usr/lib)
add_executable(actool Tools/actool.cpp)
target_link_libraries(actool PRIVATE acdriver)
#install(TARGETS actool DESTINATION usr/bin)
if (BUILD_TESTING)
ADD_UNIT_GTEST(acdriver Options Tests/test_Options.cpp)
ADD_UNIT_GTEST(acdriver Output Tests/test_Output.cpp)
ADD_UNIT_GTEST(acdriver Result Tests/test_Result.cpp)
ADD_UNIT_GTEST(acdriver AppIconSet Tests/test_AppIconSet.cpp)
ADD_UNIT_GTEST(acdriver LaunchImage Tests/test_LaunchImage.cpp)
endif ()