Ops.cmake 602 Bytes
Newer Older
1 2 3
add_library(Ops ${LIBRARY_TYPE} "")

target_sources(Ops
4 5 6 7
    PRIVATE
        ${OPS_DIR}/ClassOps.cpp  /
        ${OPS_DIR}/Error.cpp /
        ${OPS_DIR}/Ops.cpp 
8 9 10 11 12
)

# Suppress all warnings from this third party library. PRIVATE is important not to propagate that to the MoReFEM libraries!
target_compile_options(Ops PRIVATE -w)

13 14 15 16 17 18 19
target_link_libraries(Ops ${LIB_LUA})

install(TARGETS Ops
        RUNTIME DESTINATION ${MOREFEM_INSTALL_DIR_EXE}
        LIBRARY DESTINATION ${MOREFEM_INSTALL_DIR_LIB}
        ARCHIVE DESTINATION ${MOREFEM_INSTALL_DIR_LIB})

20
target_link_libraries(${MOREFEM_UTILITIES} Ops)