# Boost set(Boost_USE_STATIC_LIBS ON) find_package(Boost 1.67.0 REQUIRED COMPONENTS thread date_time filesystem random regex system ) # Library sources add_library(templates STATIC "BasicTemplate.cpp" "PatchAntennaTemplate.cpp" "TemplateBuilder.cpp" "DipoleAntennaTemplate.cpp" "CircularPatchAntennaTemplate.cpp" "TriangleMicrostripAntennaTemplate.cpp" "YaguiUdaAntennaTemplate.cpp" "AperturePatchAntennaTemplate.cpp" "WorkpieceTemplate.cpp" "InductorTemplate.cpp" "EOFBlockTemplate.cpp" "EOFMagnetTemplate.cpp") # Library sources add_library(templates_api STATIC "BasicTemplate.cpp" "PatchAntennaTemplate.cpp" "TemplateBuilder.cpp" "DipoleAntennaTemplate.cpp" "CircularPatchAntennaTemplate.cpp" "TriangleMicrostripAntennaTemplate.cpp" "YaguiUdaAntennaTemplate.cpp" "AperturePatchAntennaTemplate.cpp" "WorkpieceTemplate.cpp" "InductorTemplate.cpp" "EOFBlockTemplate.cpp" "EOFMagnetTemplate.cpp") target_include_directories(templates PUBLIC $ENV{WEBSOCKETPP_INCLUDE_DIR} ${PROJECT_SOURCE_DIR}/src ${THIRD_PARTY_DIR} ${Boost_INCLUDE_DIRS} ${VTK_INC_DIR} ${OpenCASCADE_INCLUDE_DIR} ${NETGEN_INCLUDE_DIRS}) target_include_directories(templates_api PUBLIC $ENV{WEBSOCKETPP_INCLUDE_DIR} ${PROJECT_SOURCE_DIR}/src ${THIRD_PARTY_DIR} ${Boost_INCLUDE_DIRS} ${VTK_INC_DIR} ${OpenCASCADE_INCLUDE_DIR} ${NETGEN_INCLUDE_DIRS}) target_link_libraries(templates PUBLIC ${OpenCASCADE_LIBRARIES} ${VTK_LIBS} ${NETGEN_LIBS} mesh) target_link_libraries(templates_api PUBLIC ${OpenCASCADE_LIBRARIES} ${VTK_LIBS} ${NETGEN_LIBS} mesh_api) target_compile_definitions(templates_api PUBLIC CENOS_API=1)