2023-11-05 09:24:09 -08:00
|
|
|
set(glacier_files
|
2023-11-22 12:17:10 -08:00
|
|
|
status/error.cpp
|
2023-11-02 20:23:28 -07:00
|
|
|
string/string.cpp
|
2023-11-03 02:48:21 -07:00
|
|
|
string/string_builder.cpp
|
2023-11-02 20:23:28 -07:00
|
|
|
string/string_view.cpp
|
2023-11-03 02:48:21 -07:00
|
|
|
string/str_format.cpp
|
2023-11-02 20:23:28 -07:00
|
|
|
string/str_split.cpp
|
2023-11-22 11:19:21 -08:00
|
|
|
util/hash.cpp
|
2023-11-02 20:23:28 -07:00
|
|
|
)
|
2023-06-21 14:42:23 -07:00
|
|
|
|
2023-11-05 09:24:09 -08:00
|
|
|
add_library(glacier STATIC
|
|
|
|
${glacier_files}
|
|
|
|
)
|
|
|
|
|
2023-06-21 14:42:23 -07:00
|
|
|
target_include_directories(glacier
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
2023-07-19 20:50:19 -07:00
|
|
|
|
|
|
|
set_target_properties(glacier PROPERTIES
|
|
|
|
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}")
|
2023-11-05 09:24:09 -08:00
|
|
|
|
|
|
|
add_library(glacier_kernel STATIC
|
|
|
|
${glacier_files}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(glacier_kernel
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
|
|
|
|
|
|
|
set_target_properties(glacier_kernel PROPERTIES
|
2023-11-21 15:50:31 -08:00
|
|
|
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS} -mcmodel=kernel -mgeneral-regs-only")
|