mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
b694b4667a
move fieldlines code to meshing dir move visualization function pointers to meshing directory DLL_HEADER -> NGGUI_API in visualization lib move soldata.hpp to meshing update occ, no freetype necessary anymore
30 lines
859 B
CMake
30 lines
859 B
CMake
# this file is included from the parent directory (otherwise generated source files are not recognized properly by cmake)
|
|
|
|
# generate .cpp files containing the string of the .rls meshing rule files
|
|
add_executable(makerls rules/makerlsfile.cpp)
|
|
|
|
set(rules
|
|
hexrules
|
|
prismrules2
|
|
pyramidrules
|
|
pyramidrules2
|
|
quadrules
|
|
tetrules
|
|
triarules
|
|
)
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/rules/)
|
|
|
|
foreach(rule ${rules})
|
|
list(APPEND rules_sources ${CMAKE_CURRENT_BINARY_DIR}/rules/rule_${rule}.cpp)
|
|
set(rule_file ${CMAKE_CURRENT_SOURCE_DIR}/rules/${rule}.rls)
|
|
set(rule_cpp ${CMAKE_CURRENT_BINARY_DIR}/rules/rule_${rule}.cpp)
|
|
|
|
add_custom_command(OUTPUT ${rule_cpp}
|
|
COMMAND makerls ${rule_file} ${rule_cpp} ${rule}
|
|
DEPENDS makerls ${rule_file}
|
|
)
|
|
endforeach()
|
|
|
|
target_sources(nglib PRIVATE ${rules_sources})
|