Skip to content

Commit

Permalink
Tweak target_sources usage
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Jul 12, 2024
1 parent a5fed8d commit d0e0f5d
Show file tree
Hide file tree
Showing 17 changed files with 415 additions and 435 deletions.
129 changes: 62 additions & 67 deletions source/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,75 +4,70 @@ add_library(tactile-base INTERFACE)
add_library(tactile::base ALIAS tactile-base)

target_sources(tactile-base
INTERFACE
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/array.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/deque.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/expected.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/function.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/hash_map.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/maybe.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/pair.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/path.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/queue.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/ref.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/set.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/smart_ptr.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/span.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/string.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/string_map.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/tree_map.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/variant.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/container/vector.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/component_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/document_visitor.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/layer_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/map_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/meta_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/object_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/tile_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/document/tileset_view.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/engine/engine_app.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/io/compress/compression_format.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/io/compress/compressor.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/io/save/ir.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/io/save/save_format.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/io/save/save_format_id.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/io/byte_stream.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/layer/layer_type.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/layer/object_type.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/layer/tile_encoding.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/layer/tile_orientation.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/log/log_level.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/meta/attribute.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/meta/attribute_type.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/meta/color.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/saturate_cast.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/sign_cast.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/vec.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/vec_common.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/vec_format.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/numeric/vec_stream.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/render/renderer.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/render/texture.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/render/window.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/buffer.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/chrono.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/concepts.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/format.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/hash.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/matrix_extent.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/matrix_index.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/util/strong_type.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/id.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/int.hpp"
"${PROJECT_SOURCE_DIR}/inc/tactile/base/prelude.hpp"
INTERFACE FILE_SET "HEADERS" BASE_DIRS "inc" FILES
"inc/tactile/base/container/array.hpp"
"inc/tactile/base/container/deque.hpp"
"inc/tactile/base/container/expected.hpp"
"inc/tactile/base/container/function.hpp"
"inc/tactile/base/container/hash_map.hpp"
"inc/tactile/base/container/maybe.hpp"
"inc/tactile/base/container/pair.hpp"
"inc/tactile/base/container/path.hpp"
"inc/tactile/base/container/queue.hpp"
"inc/tactile/base/container/ref.hpp"
"inc/tactile/base/container/set.hpp"
"inc/tactile/base/container/smart_ptr.hpp"
"inc/tactile/base/container/span.hpp"
"inc/tactile/base/container/string.hpp"
"inc/tactile/base/container/string_map.hpp"
"inc/tactile/base/container/tree_map.hpp"
"inc/tactile/base/container/variant.hpp"
"inc/tactile/base/container/vector.hpp"
"inc/tactile/base/document/component_view.hpp"
"inc/tactile/base/document/document_visitor.hpp"
"inc/tactile/base/document/layer_view.hpp"
"inc/tactile/base/document/map_view.hpp"
"inc/tactile/base/document/meta_view.hpp"
"inc/tactile/base/document/object_view.hpp"
"inc/tactile/base/document/tile_view.hpp"
"inc/tactile/base/document/tileset_view.hpp"
"inc/tactile/base/engine/engine_app.hpp"
"inc/tactile/base/io/compress/compression_format.hpp"
"inc/tactile/base/io/compress/compressor.hpp"
"inc/tactile/base/io/save/ir.hpp"
"inc/tactile/base/io/save/save_format.hpp"
"inc/tactile/base/io/save/save_format_id.hpp"
"inc/tactile/base/io/byte_stream.hpp"
"inc/tactile/base/layer/layer_type.hpp"
"inc/tactile/base/layer/object_type.hpp"
"inc/tactile/base/layer/tile_encoding.hpp"
"inc/tactile/base/layer/tile_orientation.hpp"
"inc/tactile/base/log/log_level.hpp"
"inc/tactile/base/meta/attribute.hpp"
"inc/tactile/base/meta/attribute_type.hpp"
"inc/tactile/base/meta/color.hpp"
"inc/tactile/base/numeric/saturate_cast.hpp"
"inc/tactile/base/numeric/sign_cast.hpp"
"inc/tactile/base/numeric/vec.hpp"
"inc/tactile/base/numeric/vec_common.hpp"
"inc/tactile/base/numeric/vec_format.hpp"
"inc/tactile/base/numeric/vec_stream.hpp"
"inc/tactile/base/render/renderer.hpp"
"inc/tactile/base/render/texture.hpp"
"inc/tactile/base/render/window.hpp"
"inc/tactile/base/util/buffer.hpp"
"inc/tactile/base/util/chrono.hpp"
"inc/tactile/base/util/concepts.hpp"
"inc/tactile/base/util/format.hpp"
"inc/tactile/base/util/hash.hpp"
"inc/tactile/base/util/matrix_extent.hpp"
"inc/tactile/base/util/matrix_index.hpp"
"inc/tactile/base/util/strong_type.hpp"
"inc/tactile/base/id.hpp"
"inc/tactile/base/int.hpp"
"inc/tactile/base/prelude.hpp"
)

target_include_directories(tactile-base
INTERFACE
"${PROJECT_SOURCE_DIR}/inc"
)

if (TACTILE_BUILD_TESTS)
add_subdirectory("test")
endif ()
22 changes: 11 additions & 11 deletions source/base/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ add_executable(tactile-base-test)

target_sources(tactile-base-test
PRIVATE
"${PROJECT_SOURCE_DIR}/src/meta/attribute_test.cpp"
"${PROJECT_SOURCE_DIR}/src/numeric/saturate_cast_test.cpp"
"${PROJECT_SOURCE_DIR}/src/numeric/vec_common_test.cpp"
"${PROJECT_SOURCE_DIR}/src/numeric/vec_format_test.cpp"
"${PROJECT_SOURCE_DIR}/src/numeric/vec_stream_test.cpp"
"${PROJECT_SOURCE_DIR}/src/numeric/vec_test.cpp"
"${PROJECT_SOURCE_DIR}/src/util/buffer_test.cpp"
"${PROJECT_SOURCE_DIR}/src/util/format_test.cpp"
"${PROJECT_SOURCE_DIR}/src/util/matrix_extent_test.cpp"
"${PROJECT_SOURCE_DIR}/src/util/matrix_index_test.cpp"
"${PROJECT_SOURCE_DIR}/src/main.cpp"
"src/meta/attribute_test.cpp"
"src/numeric/saturate_cast_test.cpp"
"src/numeric/vec_common_test.cpp"
"src/numeric/vec_format_test.cpp"
"src/numeric/vec_stream_test.cpp"
"src/numeric/vec_test.cpp"
"src/util/buffer_test.cpp"
"src/util/format_test.cpp"
"src/util/matrix_extent_test.cpp"
"src/util/matrix_index_test.cpp"
"src/main.cpp"
)

tactile_prepare_target(tactile-base-test)
Expand Down
Loading

0 comments on commit d0e0f5d

Please sign in to comment.