Skip to content

Commit

Permalink
build: export install, ref #180
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Nov 5, 2024
1 parent 56a4b6e commit 25ac6c7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions common/astl/public/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ target_sources(astl-public INTERFACE FILE_SET HEADERS FILES
# target_link_libraries(astl INTERFACE )

install(TARGETS astl-public
EXPORT ac-local
FILE_SET HEADERS
)
1 change: 1 addition & 0 deletions common/jalog/code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ target_link_libraries(ac-jalog
)

install(TARGETS ac-jalog
EXPORT ac-local
FILE_SET HEADERS
)
1 change: 1 addition & 0 deletions dict/code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ target_sources(ac-dict INTERFACE FILE_SET HEADERS FILES
)

install(TARGETS ac-dict
EXPORT ac-local
FILE_SET HEADERS
)
5 changes: 5 additions & 0 deletions local/code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ target_sources(ac-local
)

install(TARGETS ac-local
EXPORT ac-local
FILE_SET HEADERS
)
install(EXPORT ac-local
NAMESPACE ac::
DESTINATION share/cmake
)
5 changes: 3 additions & 2 deletions local/schema/code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
add_library(ac-schema INTERFACE)
add_library(ac::schema ALIAS ac-schema)
target_link_libraries(ac-schema INTERFACE
ac::astl-private
ac::astl-public
ac::dict
magic_enum::magic_enum
# magic_enum::magic_enum
)
target_sources(ac-schema INTERFACE FILE_SET HEADERS FILES
ac/schema/ModelSchema.hpp
Expand All @@ -16,5 +16,6 @@ target_sources(ac-schema INTERFACE FILE_SET HEADERS FILES
)

install(TARGETS ac-schema
EXPORT ac-local
FILE_SET HEADERS
)
2 changes: 1 addition & 1 deletion local/schema/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ macro(schema_test test)
endmacro()

schema_test(SchemaItem)
schema_test(SchemaEnum)
# schema_test(SchemaEnum)
schema_test(ModelSchema)

0 comments on commit 25ac6c7

Please sign in to comment.