set(HEADERS coop.h coopstr.h) set(CPPS coop.cpp) set(NETGAME_MODULE coop) add_library(${NETGAME_MODULE} MODULE ${CPPS} ${HEADERS}) set_target_properties(${NETGAME_MODULE} PROPERTIES CXX_VISIBILITY_PRESET "hidden") set_target_properties(${NETGAME_MODULE} PROPERTIES PREFIX "") set_target_properties(${NETGAME_MODULE} PROPERTIES SUFFIX ".d3m") set_target_properties(${NETGAME_MODULE} PROPERTIES LIBRARY_OUTPUT_NAME "co-op") set_target_properties(${NETGAME_MODULE} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "$/netgames") target_link_libraries(${NETGAME_MODULE} PRIVATE dmfc ) install(TARGETS "${NETGAME_MODULE}" DESTINATION ${CMAKE_INSTALL_LIBDIR}/netgames)