2018-12-08 20:10:29 +05:00
|
|
|
|
|
|
|
add_library(ngcore archive.cpp version.cpp)
|
2018-11-29 22:35:30 +05:00
|
|
|
|
|
|
|
set_target_properties(ngcore PROPERTIES POSITION_INDEPENDENT_CODE ON )
|
2018-12-07 17:08:00 +05:00
|
|
|
target_compile_definitions(ngcore PRIVATE -DNGCORE_EXPORTS)
|
2018-11-29 22:35:30 +05:00
|
|
|
|
2018-12-03 20:28:04 +05:00
|
|
|
install(TARGETS ngcore DESTINATION ${NG_INSTALL_DIR} COMPONENT netgen)
|
|
|
|
|
2018-12-08 20:10:29 +05:00
|
|
|
install(FILES ngcore.hpp archive.hpp type_traits.hpp version.hpp ngcore_api.hpp
|
|
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/core COMPONENT netgen_devel)
|
|
|
|
|
|
|
|
if(ENABLE_CPP_CORE_GUIDELINES_CHECK)
|
|
|
|
set_target_properties(ngcore PROPERTIES CXX_CLANG_TIDY "${DO_CLANG_TIDY}")
|
|
|
|
endif(ENABLE_CPP_CORE_GUIDELINES_CHECK)
|