hyporo-cpp/source/hpr/mesh/CMakeLists.txt

30 lines
534 B
CMake
Raw Normal View History

2022-12-13 23:09:36 +05:00
cmake_minimum_required(VERSION 3.16)
2022-12-06 23:52:49 +05:00
2022-12-13 23:09:36 +05:00
project(mesh
2023-03-13 22:27:09 +05:00
VERSION "${HPR_VERSION}"
2022-12-13 23:09:36 +05:00
LANGUAGES CXX
)
2022-12-06 23:52:49 +05:00
2023-03-13 22:27:09 +05:00
hpr_add_library(${PROJECT_NAME} STATIC)
2022-12-06 23:52:49 +05:00
2023-03-13 22:27:09 +05:00
hpr_collect_interface(${PROJECT_NAME}
"../mesh.hpp"
"*.hpp"
)
2022-12-06 23:52:49 +05:00
2023-03-13 22:27:09 +05:00
hpr_collect_sources(${PROJECT_NAME}
"*.cpp"
)
2022-12-06 23:52:49 +05:00
2022-12-13 23:09:36 +05:00
target_sources(${PROJECT_NAME}
2023-03-13 22:27:09 +05:00
INTERFACE ${${PROJECT_NAME}_HEADERS_INTERFACE} ${HPR_INSTALL_INTERFACE}/${PROJECT_NAME}>
PRIVATE ${${PROJECT_NAME}_SOURCES}
2022-12-13 23:09:36 +05:00
)
2022-12-06 23:52:49 +05:00
2023-03-13 22:27:09 +05:00
hpr_install(${PROJECT_NAME} ${PROJECT_SOURCE_DIR})
hpr_tests(${PROJECT_NAME} tests)
2022-12-13 23:09:36 +05:00