2022-05-03 18:53:24 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
project(common_components CXX)
|
|
|
|
|
|
|
|
add_library(common_components INTERFACE)
|
|
|
|
|
2022-12-07 00:19:17 +01:00
|
|
|
add_library(MM::common_components ALIAS common_components)
|
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
target_include_directories(common_components INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|
|
|
|
|
|
target_link_libraries(common_components INTERFACE
|
|
|
|
entt
|
|
|
|
glm
|
|
|
|
)
|
|
|
|
|
|
|
|
##########################
|
|
|
|
|
2022-12-07 00:19:17 +01:00
|
|
|
add_library(common_components_serialize_s6zer INTERFACE)
|
|
|
|
|
|
|
|
add_library(MM::common_components_serialize_s6zer ALIAS common_components_serialize_s6zer)
|
|
|
|
|
|
|
|
target_include_directories(common_components_serialize_s6zer INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|
|
|
|
|
|
target_link_libraries(common_components_serialize_s6zer INTERFACE
|
|
|
|
common_components
|
|
|
|
s6zer
|
|
|
|
)
|
|
|
|
|
|
|
|
##########################
|
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
add_library(common_components_serialize_json INTERFACE)
|
|
|
|
|
2022-12-07 00:19:17 +01:00
|
|
|
add_library(MM::common_components_serialize_json ALIAS common_components_serialize_json)
|
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
target_include_directories(common_components_serialize_json INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|
|
|
|
|
|
target_link_libraries(common_components_serialize_json INTERFACE
|
|
|
|
common_components
|
|
|
|
nlohmann_json::nlohmann_json
|
|
|
|
)
|
|
|
|
|
|
|
|
if(BUILD_TESTING)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
|
|
|
|