Skip to content

Commit

Permalink
build: basic install ac-local, ref #180
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Nov 5, 2024
1 parent d65ca98 commit 4021041
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 23 deletions.
35 changes: 21 additions & 14 deletions local/code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
icm_add_lib(ac-local AC_LOCAL)
add_library(ac::local ALIAS ac-local)
target_include_directories(ac-local INTERFACE .)

target_link_libraries(ac-local
PRIVATE
jalog::jalog
Expand All @@ -13,20 +13,27 @@ target_link_libraries(ac-local
ac::dict
ac::schema
)
target_sources(ac-local PRIVATE
ac/local/export.h
target_sources(ac-local
INTERFACE FILE_SET HEADERS FILES
ac/local/export.h

ac/local/ModelDesc.hpp
ac/local/ProgressCb.hpp
ac/local/ModelPtr.hpp
ac/local/ModelLoader.hpp
ac/local/Model.hpp
ac/local/Instance.hpp

ac/local/Logging.hpp
ac/local/Logging.cpp
ac/local/ModelFactory.hpp
PRIVATE
ac/local/Logging.hpp
ac/local/Logging.cpp

ac/local/ModelDesc.hpp
ac/local/ProgressCb.hpp
ac/local/ModelPtr.hpp
ac/local/ModelLoader.hpp
ac/local/Model.hpp
ac/local/Instance.hpp
ac/local/VtableExports.cpp
ac/local/VtableExports.cpp

ac/local/ModelFactory.cpp
)

ac/local/ModelFactory.hpp
ac/local/ModelFactory.cpp
install(TARGETS ac-local
FILE_SET HEADERS
)
10 changes: 1 addition & 9 deletions local/schema/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,5 @@
# SPDX-License-Identifier: MIT
#
ac_dep(magic_enum)

add_library(ac-schema INTERFACE)
add_library(ac::schema ALIAS ac-schema)
target_link_libraries(ac-schema INTERFACE
ac::astl-private
ac::dict
magic_enum::magic_enum
)
target_include_directories(ac-schema INTERFACE code)
add_subdirectory(code)
ac_add_test_subdir()
20 changes: 20 additions & 0 deletions local/schema/code/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) Alpaca Core
# SPDX-License-Identifier: MIT
#
add_library(ac-schema INTERFACE)
add_library(ac::schema ALIAS ac-schema)
target_link_libraries(ac-schema INTERFACE
ac::astl-private
ac::dict
magic_enum::magic_enum
)
target_sources(ac-schema INTERFACE FILE_SET HEADERS FILES
ac/schema/ModelSchema.hpp
ac/schema/ModelSchemaGenHelper.hpp
# ac/schema/SchemaEnum.hpp
ac/schema/SchemaItem.hpp
)

install(TARGETS ac-schema
FILE_SET HEADERS
)

0 comments on commit 4021041

Please sign in to comment.