add_executable (surfaces main.cc) add_executable (surfaces-static EXCLUDE_FROM_ALL main.cc ) SET_TARGET_PROPERTIES(surfaces PROPERTIES OUTPUT_NAME "surfaces") SET_TARGET_PROPERTIES(surfaces-static PROPERTIES OUTPUT_NAME "surfaces") target_link_libraries (surfaces ${LIBS} gnurbs-dynamic ${NUTIL_DYNAMIC_LIBRARIES} ) target_link_libraries (surfaces-static ${LIBS} gnurbs-static ${NUTIL_STATIC_LIBRARIES} )